asFile

external fun asFile(): DataTransferFile?(source)

Try getting the file associated with this data transfer item.

Note that the file object is only valid for the scope of the drag and drop operation.