blueimp/jQuery-File-Upload — Issue #969: Drag and Drop - receiving multiple files even if dropped only 1
Author: clod81
Created: 2012-01-26 02:30:28+00:00
State: open

Hi,

I'm using the drag and drop functionality.

I added the following in my JS
$(document).bind('drop dragover', function (e) {
e.preventDefault();
});

My file upload jquery is defined like this:

$('input#fileupload').fileupload({
....
dropZone: ((!$.browser.msie) ? $('#dropzone') : false),
.......
drop: function (e, data) {
$.each(data.files, function (index, file) {
console.log('Dropped file: ' + file.name);
});
},

when I drag and drop 1 file, I can see in the console 2 or sometimes 3 or 4 files being dropped (same file, same file name showing in the console).

Any idea ?
Is it a bug?
Am I doing something wrong?

I'm not using the UI version, only basic one.