files property
FileList
get
files
The files read-only property of
DataTransfer
objects is a FileList in the drag operation. If the operation includes
no files, the list is empty.
This feature can be used to drag files from a user's desktop to the browser.
Note: The
filesproperty ofDataTransferobjects can only be accessed from within thedropevent. For all other events, thefilesproperty will be empty — because its underlying data store will be in a protected mode.
Implementation
external FileList get files;