jimmywarting / StreamSaver.js

StreamSaver writes stream to the filesystem directly asynchronous
https://jimmywarting.github.io/StreamSaver.js/example.html
MIT License
3.97k stars 413 forks source link

Resumable Download for Large File #206

Open ev3nst opened 3 years ago

ev3nst commented 3 years ago

Im wondering if its possible to use this library with xhr and make it somehow resumable after network error.

"solution" with headers such as Content-Disposition does not work after server or client has a network failure for some reason. Most browsers delete chunk file from client disk after network error thats why when you click resume it starts over. There is no way to send Content-Range to the server to get only parts that are needed but thats irrevelant because like i said browser already deleted the chunk file that was already downloaded..

scenario with these parameters is it possible ? if so can you please provide a minimal example that i can progress on.

thanks in advance.

Wamy-Dev commented 1 year ago

Did you ever figure out a solution? Also dealing with the same problem.