getAsFile method
Returns the file associated with the DataTransferItem.
![]() |
Syntax
var retval = DataTransferItem.getAsFile();Parameters
This method has no parameters.
Return value
Type: File
The file object associated with this data item
Standards information
Remarks
This method only succeeds for DataTransferItems in file format. Otherwise, it will return null.
See also
Show:
