Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upper limit on zip file size? #580

Open
gannons opened this issue Jan 31, 2019 · 3 comments
Open

Upper limit on zip file size? #580

gannons opened this issue Jan 31, 2019 · 3 comments

Comments

@gannons
Copy link

gannons commented Jan 31, 2019

I've been asked if it's possible to generate large zips in the browser. From my research, and experiments, it's starting to look like this is not what the platform is designed for. AFAIK if we attempt to generate large files (>= ~3 Gb) in the browser we'll run into memory issues / crashes. But I'm having difficultly confirming this with specifications, documentation, wikis, etc.

I was hoping the contributors might have an opinion on what is a reasonable upper limit? i.e. For files generated by jszip?

@florianstancioiu
Copy link

I'm wondering about this limitation too.
Can we get an answer, some people over on reddit talk about a 5mb size limit, is that true?

@sregger
Copy link

sregger commented Dec 16, 2020

on reddit talk about a 5mb size limit, is that true?

No. Perhaps it was true in the past but modern browsers can generate much larger zip files. In my tests I managed to generate a 10-20 GB zip.

However the browse does start to become unstable and will eventually crash. I was also using generated, as opposed to real, data so your mileage may vary.

In my scenario we moved away from generating the zip in a browse and settled on a dedicated desktop client which we wrote with Electron.

@fuscoem
Copy link

fuscoem commented Dec 17, 2020

Using version 3.2.2 of jszip and streamsaver we managed to generate zip files in streaming in a vue app (in browser) using the generateNodeStream. Unfortunately with newer versions of jszip the generateNodeStream does not work in a browser (see #663 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants