jquery-form / jquery-form/form

uploadProgress function not working in Microsoft Edge

Open
#525 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug help wanted upload
Dominant language
JavaScript
Stars
5.1k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in jquery.form.js and inspect how the uploadProgress callback is wired for XMLHttpRequest uploads. Reproduce the reported behavior in Microsoft Edge using the supplied callback, comparing it with Chrome, Firefox, and Internet Explorer. Done means progress callbacks fire during the upload rather than only after completion, without regressing the other browsers.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.