jquery-form/form

uploadProgress function not working in Microsoft Edge

Open

#525 aperta il 14 mag 2017

Vedi su GitHub
 (13 commenti) (0 reazioni) (0 assegnatari)JavaScript (2199 fork)batch import
bughelp wantedupload

Metriche repository

Star
 (5209 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

This just started recently, probably after an update to either Edge or Windows 10.

The uploadProgress function is not triggering until the upload is complete. It works fine in Chrome, Firefox and Internet Explorer. I've just downloaded the latest version of jquery.form.js and the issue is the same.

            uploadProgress: function (event, position, total, percentComplete) {
                if (running === false) {
                    running = true;
                    parent.postMessage("status|running","*");
                }
                var percentValue = percentComplete + '%';
                bar.width(percentValue);
                bar.html(percentValue);
            },

Guida contributor