jquery-form/form

uploadProgress function not working in Microsoft Edge

Open

#525 ouverte le 14 mai 2017

Voir sur GitHub
 (13 commentaires) (0 réactions) (0 assignés)JavaScript (2 199 forks)batch import
bughelp wantedupload

Métriques du dépôt

Stars
 (5 209 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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);
            },

Guide contributeur