weixiyen / jquery-filedrop

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

afterAll doesn't fire if files are rejected #175

Open GreatPotato opened 9 years ago

GreatPotato commented 9 years ago

If queue mode is enabled, it seems that afterAll() doesn't fire if a file is rejected for any reason.

On line 453 it seems that filesRejected is always 0 which I think is causing the issue but I can't seem to figure this out any further.

pietrofxq commented 9 years ago

Having the same problem.

I implemented a custom version of filedrop where I pass the XHR object in the uploadStarted, so I can cancel the upload.

If I upload two files and abort one, afterAll isn't fired.