question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uploaded event fired before progress=100 event

See original GitHub issue

First, thank you very much for providing this cool package for uploading files with Meteor!

Is there a reason why the “uploaded” event is fired before the “progress” event (with 100% progress) is fired?

The following code:

uploadInstance.on("start", () => {
    console.log('starting upload');
});

uploadInstance.on("progress", (progress, fileObj) => {
    console.log("progress", progress);
});

uploadInstance.on("uploaded", (error, fileObj) => {
    console.log("uploaded");
});

results in the console log below:

starting upload
progress 5
progress 37
progress 63
uploaded
progress 100

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
raedlecommented, May 30, 2018

@dr-dimitru Your fix works. Thank you. I’m closing the issue

0reactions
dr-dimitrucommented, May 29, 2018

@raedle thank you for update on this one. Feel free to close it in case if the issue is solved on your end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Html5 ajax file upload progress listener not triggering when ...
I am uploading files over ajax and processing images after upload. When I tried upload image files over ajax on firefox , xhr...
Read more >
XHR upload progress event does not reach 100% in FireFox ...
It is not correct. it seems that 100% progress event is blocked until the action in server side is finished and XHR request...
Read more >
Upload ProgressChanged event fires for the last uploaded file ...
My issue is: I can't capture the upload progress for all uploaded files. The “ProgressChanged” event fires for the last uploaded file only....
Read more >
XHR does fire Progress events, but passes no ... - GitHub
We're uploading using XHR, setting Content-Length and Content-Type, and seeing "progress" events fire, but the params sent to the event ...
Read more >
Angular File Upload with Progress - DEV Community ‍ ‍
I've bound the input's change event to a component method while passing the input's files attribute that contains a FileList with one or ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found