danielm / uploader

A lightweight and very configurable jQuery plugin for file uploading using ajax(a sync); includes support for queues, progress tracking and drag and drop.
https://danielmg.org/demo/java-script/uploader
MIT License
1.17k stars 385 forks source link

Feature Requests: OnComplete Fires After OnFileSizeError, Events For Before/After Queue Processing #82

Open jwbats opened 5 years ago

jwbats commented 5 years ago

I am in the situation where I want to show the user a log of all file processing when multiple files are drag & dropped into the zone.

Only when the whole queue is processed, should this log show a close button, with which the user can close the log and regain access to the file uploader to upload more files.

Unfortunately, the OnComplete doesn't fire after a number of OnFileSizeError events. Let's say all files that the user wants to upload are too big. Now the OnComplete will never fire and I have no way of knowing when to display my log's close button.

Currently, there are only events for individual files. It would come in handy to have an OnBeforeQueue event. The OnComplete is essentially already the OnAfterQueue event. Except that it doesn't fire after OnFileSizeErrors.