If the item is a file, the DataTransferItem.getAsFile()
method returns the drag data item's File
object. If the item is not a file, this method returns null
. Easy translator 15 0 0.
- Instashare 1 2 0 – Drag And Drop File Transfer Files
- Instashare 1 2 0 – Drag And Drop File Transfer Software
Syntax
From your computer, click here for the software update file. Select Save and select Desktop as the location. Do NOT modify or change the downloaded file's name in any way. Do NOT try to open the file. Tap the Settings icon in the Status bar at the top of your screen. Download DropIt for free. A flexible tool to automate processing & organizing files and folders. When you need to organize files, DropIt can eliminate much of the drudgery of searching and manually opening folders and moving files around. Drop a group of different files and folders on the floating DropIt image and it sorts them to defined destination folders, compresses or extracts them, opens. Leawo iTransfer connects to your iOS device and allows you to access any Apps, Music, Videos, Messages, Books, and Photos on it. Depending on the category, you can either back up or copy the data.
Parameters
None.
Return value
File
- If the drag data item is a file, a
File
object is returned; otherwisenull
is returned.
Example
This example shows the use of the getAsFile()
method in a drop
event handler.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'getAsFile()' in that specification. | Living Standard | Initial value |
HTML 5.1 The definition of 'getAsFile()' in that specification. | Recommendation | Snapshot of the HTML WHATWG document |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | Android webview | Chrome for Android | Firefox for Android | Opera for Android | Safari on iOS | Samsung Internet | |
getAsFile | ChromeFull support 11 | EdgeFull support 12 | FirefoxFull support 50 | IENo support No | OperaFull support 12 | SafariFull support 5.1 | WebView AndroidFull support 4 | Chrome AndroidFull support 18 | Firefox AndroidFull support 50 | Opera AndroidNo support No | Safari iOSFull support 5 | Samsung Internet AndroidFull support 1.0 |
Instashare 1 2 0 – Drag And Drop File Transfer Files
Legend
- Full support
- Full support
- No support
- No support