The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
FileList object
The list of files that have been selected by the user.
![]() |
Syntax
<input type="file" multiple="multiple" onchange="for (var i = 0; i < this.files.length; i++) { document.write(this.files[i].name ) };" />
DOM Information
Inheritance Hierarchy
The FileList does not inherit from any class or interface.Members
The FileList object has these types of members:
Methods
The FileList object has these methods.
| Method | Description |
|---|---|
| item |
Returns a File object from a FileList object. |
Properties
The FileList object has these properties.
| Property | Access type | Description |
|---|---|---|
|
Read-only |
Returns the number of files contained in a FileList object. |
Remarks
Each element in FileList object is a File object.
Show:
