getAsFile method

Returns the file associated with the DataTransferItem.

HTML5 A vocabulary and associated APIs for HTML and XHTML

 

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

DataTransferItem

 

 

Show: