jQuery-File-Upload icon indicating copy to clipboard operation
jQuery-File-Upload copied to clipboard

drag&drop from itunes to safari on mac fails

Open Maysora opened this issue 11 years ago • 4 comments

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..

Maysora avatar Mar 26 '13 14:03 Maysora

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/

blueimp avatar Mar 27 '13 17:03 blueimp

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

Maysora avatar Mar 28 '13 12:03 Maysora

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/

blueimp avatar Mar 28 '13 13:03 blueimp

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).

blueimp avatar Feb 17 '20 14:02 blueimp