weixiyen / jquery-filedrop

jQuery plugin - drag and drop desktop files and POST to a URL to handle files.
958 stars 285 forks source link

Upload event doesn't work #165

Open ghost opened 10 years ago

ghost commented 10 years ago

Upload must start after drop event, but it doesn't. I changed the code reader.onloadend = !opts.beforeSend ? send : function (e) { opts.beforeSend(files[fileIndex], fileIndex, function () { send(e); }); }; to this one reader.onloadend = !opts.beforeSend ? send : function (e) { opts.beforeSend(files[fileIndex], fileIndex, function () { send(e); }); send(e); }; and it works for me. Please check this moment, and if there is more efficient solution, do and commit it please. Thank you.

mkenran commented 9 years ago

You must call done(); in your custom beforeSend hook. See the comments in the example.