Open starli-sl opened 3 years ago
I think I have implemented it in my fork (https://github.com/magnus-rattlehead/StreamSaver.js) , check it out, and if there are fixes/improvements to be made let me know and I'll make a PR.
@magnus-rattlehead Thanks for writing this. Did you test this so far? The file saving-multiple-files.html
throws an error. Did you manage to run this? I will also have a look into it
@christianwengert Fixed some of those syntax errors in the latest commit. I'm testing with large files right now and everything looks good, but I'm not sure if this is the code or my internet connection, downloads take forever. Feel free to test/review. If all looks good ill make a PR on the main repo.
Looks like there are problems with large files. They stop downloading at 4,506,484,525 bytes. I assume this is a problem with my implementation of zip64 code. I'll look into it later
EDIT: I think I fixed it. My latest commit to my fork should be working. Feel free to test it on your end.
The zip.js has support zip64. If we can merge the changes from the zip.js, we may able to get rid of the 4G size limit. https://github.com/gildas-lormeau/zip.js/pull/206