I’m currently using the Jquery plugin for file uploads: Jquery File Upload
However, nowhere in the documentation does it specify how to get the number of current uploaded files. It would be nice to query the plugin to check how many have been uploaded. Is there any way to do this?
I came up with this answer. The problem with the send callback is that it doesn’t indicate successful upload. I tried ‘done’ instead but that doesn’t handle the situation where there are deleted uploads.
Instead I count the number of successful templates within the control.
E.g.
I call this on the ‘done’ callback to refresh the upload count.