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.

[Feature request] Emit "progress" during chunk uploads as well as after each chunk.

See original GitHub issue

Currently, the “progress” event is only emitted after each chunk has been uploaded. My request is to emit this event while uploading each chunk as well.

AFAIK, this can’t be accomplished with the native fetch function that this library uses. So this feature would require the use of XMLHttpRequest or a library like axios.

The reason for this request is to be able to give feedback to the user more often while uploading larger chunks. Our uploads to Mux seem to have quite high latency (several seconds) after each chunk. To mitigate this we could increase the chunk size, but then we run into this problem with the lack of progress feedback.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
damechencommented, Jun 10, 2020

This is so cool. I’ll definitely give it a try tomorrow!

Thanks, Damon

On Tue, Jun 9, 2020 at 8:52 PM Matthew McClure notifications@github.com wrote:

Just cut the 2.0 release https://github.com/muxinc/upchunk/releases/tag/v2.0.0 which includes intra-chunk progress updates! Give it a try and let me us know if you run into any issues.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/muxinc/upchunk/issues/9#issuecomment-641704010, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHSDO34SJIENUOY6L4QIBLRV37OFANCNFSM4HK7R5HA .

0reactions
mmcccommented, Jun 10, 2020

Just cut the 2.0 release which includes intra-chunk progress updates! Give it a try and let me us know if you run into any issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upload progress indicators for fetch? - Stack Overflow
It sounds like upload progress will eventually be possible with fetch once it ... Get first chunk of the request reader let chunk...
Read more >
How to monitor the progress of a Javascript fetch - request and ...
Make fetch progress available with events. To wrap the monitoring feature up, let's create two custom events: One for whenever a data chunk...
Read more >
Concurrent Chunking | Fine Uploader Documentation
The concurrent chunking feature allows multiple chunks for each file to be uploaded simultaneously. The traditional chunking feature only sends one chunk at ......
Read more >
Angular File Upload with Progress - Nils Mehlhorn
Upload files like PDF or ZIP in Angular programmatically with the HttpClient so you can show a Material progress bar.
Read more >
How To Upload Files With .NET Core Web API and Angular
We are going to use those files as well in our app. ... Being able to upload files and use them afterward is...
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