Drag-and-drop file upload in Chromium?

Posted by Zarel on Stack Overflow See other posts from Stack Overflow or by Zarel
Published on 2010-04-17T07:38:57Z Indexed on 2010/04/17 7:43 UTC
Read the original article Hit count: 294

Filed under:
|
|

Drag-and-drop file uploading can be done in Firefox 3.6 by using FileReader: http://stackoverflow.com/questions/2121018/native-drag-drop-file-upload-in-firefox-3-6

However, Google recently released an update for Gmail that allowed drag-and-drop file uploading in Chromium as well as Firefox, and Chromium does not have FileReader. I'm using the latest Chromium nightly, and it can drag-drop upload files, while not supporting FileReader.

I've seen someone mention that drag-drop uploading can be possible by dragging onto an <input type="file" />, but that can only support one file at a time, while Gmail's uploader can handle multiple files being dragged onto it, so that's clearly not what they're doing.

So the question is, how do they do it? How do you support Chromium for HTML5 file uploading?

© Stack Overflow or respective owner

Related posts about html5

Related posts about JavaScript