bigwavesoftware bigwavesoftware - 1 year ago 78
jQuery Question

Global start/end events for jquery file upload

I am reading through the documentation for jQuery file upload (API options), and there don't appear to be events that signify "I am starting", and "I am done". There are start and stop, but those are called for each file upload that is performed.

Does anyone know of an event that I am just not seeing, or have a suggestion for how to emulate the global start/stop operation?

Answer Source

You can use progressall:

function (e, data) {
    var progress = parseInt(data.loaded /, 10);
    if( progress === 1) {
        //done :)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download