jQuery-File-Upload
jQuery-File-Upload copied to clipboard
drag&drop from itunes to safari on mac fails
drag drop from itunes to safari isn't working, reproducible on demo page (http://blueimp.github.com/jQuery-File-Upload/) using safari 6.0.3 (8536.28.10) and itunes 11.0.2(25) and seems to affect several other safari versions too.. it's working in this drag drop demo though: http://www.html5rocks.com/en/tutorials/file/dndfiles/#toc-selecting-files-dnd
i tried to trace the problem, looks like dataTransfer.items on drop event always undefined and dataTransfer.files at some point become empty array..
Confirmed. I think the issue lies somewhere with the jQuery UI widget library.
I've created a JSFiddle with drag&drop handlers in native JS, with jQuery and with the jQuery UI widget library: http://jsfiddle.net/5bMZh/
I could reproduce the issue when doing a drag&drop from iTunes in Safari (same versions you tested in). With the jQuery UI widget library, the files array seems to be empty.
Please report back if you can also reproduce the issue on the provided JSFiddle. Here's the JSFiddle page without the code panes: http://fiddle.jshell.net/5bMZh/show/
native js output always show result correctly
jquery output show result correctly unless if multiple musics selected which sometimes show incomplete result or even nothing
jquery UI output almost always show empty result
OK, if you could be so kind, please report this issue to the jQuery and jQuery UI issue trackers: http://bugs.jquery.com/ http://bugs.jqueryui.com/
Noting that this issue is still prevalent when using drag&drop from the Music.app (replacement for iTunes) to the jQuery File Upload demo page Safari (but works in Chrome and Firefox).