upload progress?
See original GitHub issueIs there any way I can attach a progress listener to the xhr.upload object used in fetch?
xhr.upload.addEventListener('progress', function(){ ... })
since I use fetch to upload files, I would find this very useful.
Issue Analytics
- State:
- Created 9 years ago
- Reactions:23
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Session Upload Progress - Manual - PHP
The upload progress will be available in the $_SESSION superglobal when an upload is in progress, and when POSTing a variable of the...
Read more >Uploading files with progress monitoring in VanillaJS, Angular ...
So, in this post we will see how to upload files asynchronously with JavaScript with progress monitoring. Step 1: Our backend. Yes, we...
Read more >NGINX Upload Progress Module
The NGINX Upload Progress module is an implementation of an upload progress system, that monitors RFC1867 POST uploads as they are transmitted to...
Read more >How to Create Graphical File Upload Progress Bars in HTML5 ...
Implementing the Progress Bar in JavaScript · enables file dragging and dropping onto a web page element · analyzes and displays dropped files...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I guess you could just go with
for now
The XHR instance is an implementation detail of the polyfill that is not exposed to callers.
The best way to upload files, with progress events, is still using XHR directly rather than
fetch. You might open an issue on the Fetch API repository to request this feature, though!