AwaitedDOM / FileList
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.Properties
.length W3C {#length}
A read-only value indicating the number of files in the list.
Type: Promise<number>
Methods
.item*(index)* W3C {#item}
Returns a File
object representing the file at the specified index in the file list.
Arguments:
index
number
. Needs content.