mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Standardize file-object
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
# `File` object
|
||||
|
||||
The DOM's File interface provides abstraction around native files, in order to
|
||||
let users work on native files directly with HTML5 file API, Electron has
|
||||
added a `path` attribute to `File` interface which exposes the file's real path
|
||||
on filesystem.
|
||||
let users work on native files directly with the HTML5 file API. Electron has
|
||||
added a `path` attribute to the `File` interface which exposes the file's real path on filesystem.
|
||||
|
||||
Example on getting real path of a dragged file:
|
||||
Example on getting a real path from a dragged-onto-the-app file:
|
||||
|
||||
```html
|
||||
<div id="holder">
|
||||
|
||||
Reference in New Issue
Block a user