FileList class

An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage.

Note: Prior to Gecko 1.9.2, the input element only supported a single file being selected at a time, meaning that the FileList would contain only one file. Starting with Gecko 1.9.2, if the input element's multiple attribute is true, the FileList may contain multiple files.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

FileList()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
length int

Available on FileList, provided by the PropsFileList extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

item(int index) File?

Available on FileList, provided by the PropsFileList extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited