I'm using jQueryFileUpload to manage images in a folder. I'm trying to get the count of actual uploaded files. Actual means that I would like to increment a variable each time a new (single/multiple) upload is successfully performed and decrement it when files are deleted.
From official documentation, I've found these callbacks. I've successfully attached a callback to file uploader:
$('#fileupload').bind('fileuploadalways', function (e, data)
{
console.log(data);
});
Unfortunately, this solution has the following problems:
- I'm not able to get the number of actual uploaded files in multiple uploads
- callback is invoked on uploads only (not on delete)
Is there a way to keep the count of uploaded files after each upload/delete?