Martin B. Martin 10 10 silver badges 17 17 bronze badges. Doesn't quite do the trick there are files without extensions but lacking a better response, I'm marking this one as right. Looks like there is a better way. Google docs is able to distinguish files and folders during Ajax drop. It processes files with no extension correctly, as a file. Really interested how these was achieved. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.
Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Linked Related 0. Seems to me that Plupload does it well, supporting the following features:. And yes, since This only works on Chrome. On Safari, it freezes. IE opens the dropped file instead. Even in Chrome, the drag and drop only works once, for some reason, after which you have to refresh the page. A possible reason for this is that something is wrong with the event handlers. Chrome and Safari both support XHR2 uploads with progress events so you can do progress bars etc.
For our own application, we do drag and drop for FireFox only. We revert to the traditional iframe upload for others. Please note: This example will not work when run from a local filesystem because of security restrictions in the transport protocols used. Also note: You will need compile and host your own flashuploader.
Also note: The uploader is not supported on iOS devices iPhone and iPad , because they lack file upload capability. This example provides a graceful degradation message for all such systems.
0コメント