Simple: We can't.
Not right now anyway, fetch() does not support that, but good old XMLHttpRequest does though.
The function below behaves much like fetch()
, it will return a Promise that will resolve into a Response object.
Just pass a progress
function in the options
parameter.
progress event should be on
xhr.upload
soxhr.upload.addEventListener('progress', options.progress);