DOM Input FileUpload Object
The Input FileUpload object represents an HTML Input File element.
For each <input type="file">
tag in an HTML form, a Input FileUpload object is created.
The Input FileUpload object can be accessed by searching through the elements[] array of the form, or by using document.getElementById().
Properties
Property | Description |
---|---|
accept |
Sets or returns a comma-separated list of MIME types that indicates the MIME type of the file transfer |
defaultValue |
Sets or returns the initial value of the FileUpload object |
form |
Returns a reference to the form that contains the FileUpload object |
name |
Sets or returns the name of the FileUpload object |
type |
Returns the type of the form element. For a FileUpload object it will be "file" |
value |
Returns the file name of the FileUpload object after the text is set by user input |
Standard Properties and Methods
This object also supports the standard properties and methods.
Standard Events
This object also supports the standard events.