FileList

sealed external class FileList : ArrayLike<File> , JsIterable<File> (source)

An object of this type is returned by the files property of the HTML element; this lets you access the list of files selected with the 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.

MDN Reference

Properties

Link copied to clipboard
abstract val length: Int

Functions

Link copied to clipboard
open operator fun get(index: Int): File
open operator fun get(key: Symbol.iterator): () -> JsIterator<File>
Link copied to clipboard
fun item(index: Int): File?
Link copied to clipboard
open inline operator fun iterator(): Iterator<File>