Standardize file-object

This commit is contained in:
Jessica Lord 2015-08-25 05:48:24 -07:00
parent 81ed608b9c
commit 864c8df639

View file

@ -1,11 +1,10 @@
# `File` object # `File` object
The DOM's File interface provides abstraction around native files, in order to 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 let users work on native files directly with the HTML5 file API. Electron has
added a `path` attribute to `File` interface which exposes the file's real path added a `path` attribute to the `File` interface which exposes the file's real path on filesystem.
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 ```html
<div id="holder"> <div id="holder">