[whatwg] Expose event.dataTransfer.files accessor to allow file drag and drop
t.broyer at gmail.com
Wed Jun 10 03:30:06 PDT 2009
On Wed, Jun 10, 2009 at 10:37 AM, Adam Barth wrote:
> Currently the <input> element exposes selected files via a "files"
> accessor (i.e., as in https://developer.mozilla.org/En/NsIDOMFileList
> and http://www.w3.org/TR/file-upload/). We should add a similar
> accessor to event.dataTransfer to enable drag-and-drop of files onto
> web pages.
> Alternative APIs include getData('File'), as defined in
> However, it does not appear that IE ever implemented this API. (Also,
> note that IE doesn't follow HTML 5's clipboard security model.)
> Mozilla has an equivalent API in
> event.dataTransfer.mozGetDataAt("application/x-moz-file", 0).
It should be noted also that Adobe AIR has
getData("application/x-vnd.adobe.air.file-list")  and Gears
(starting with 0.5.21.0, as announced at Google I/O) has its own (not
yet documented) API with a "files" property  (as requested here).
More information about the whatwg