Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

files

The files property returns an indexed list of the selected files in the HTML input element with a type="file" attribute value. Using the "multiple" attribute on an input element returns multiple files selected by the user if they select more than one. It also returns a list of files transferred in the DataTransfer object during drag and drop operations.

Syntaxinput.files
SyntaxdataTransfer.files
Code example needed here

JavaScript

Properties

bodycalleeclosedcookiedocumentdropEffecteffectAllowedfilesframeElementframeshistoryInfinityinnerHeightinnerHTMLinnerWidthlengthlocationlocationbarnameNaNnavigatornullopenerouterHeightparentprototypescreenstatetextContentundefined