Class: FileInput

XV. FileInput

An input control for managing the upload of files.
Creates a file-type HTML input element, with some HTML5 functionality.

new FileInput()

Source:

Extends

  • XV.Input

Methods

setValue()

Generally we don't want to set the value of the widget, because setting the value of a file input with the binary data will just throw a security exception. But this function is also used as an essential part of selecting a file. In that circumstance the value is the filename and the options has no silent attribute, which is what's used to differentiate the appropriate times to suppress the setting of the value.
Source:

valueChange()

Turns the payload of the bubbled event into the file instead of the filename using HTML5.
Source: