2 ms·
I didn't see "show download progress" as one of the needs. I remember seeing complaints about the fetch api not exposing an easy way to do that. Issues like th
by tyingq 6y ago
I didn't see "show download progress" as one of the needs. I remember seeing complaints about the fetch api not exposing an easy way to do that. Issues like this one seem to remain: https://github.com/AnthumChris/fetch-progress-indicators/issues/13 https://github.com/AnthumChris/fetch-progress-indicators/iss...
- pseudosavant 6y agoThis is possible with the Fetch API actually. You can get the chunked up contents of the request as they arrive. This link has a good example: https://javascript.info/fetch-progress https://javascript.info/fetch-progress
- tyingq 6y agoThe issue is with "Content-Encoding: gzip". In that case, "Content-Length" isn't enough. You can make it work if you toss in an extra header server-side.