-
Notifications
You must be signed in to change notification settings - Fork 193
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
getBinaryContent : handle multiple urls at once #7
Comments
Is it not possible to download a zip that consists of multiple remote files? We have a usecase where users select multiple files and request a download. We'd rather not implement this on the server, if at all possible. |
You mean a split zip file ? JSZip doesn't support them. |
@dduponchel not a split zip, rather a single zip file that has several files download from a remote location. So, let's say I have three files a, b, and c.jpg hosted on S3, I would like to create a single zip file |
|
@abitdodgy I guess you have figured out how to solve the problem of download multiple files and zip to 1 file. Here is how I do it https://gist.github.com/noelvo/4502eea719f83270c8e9. I am wondering how you implemented. |
@noelvo in the end I use d a Ruby library to stream the files from the CDN. It's worked well for me, especially because I needed to do some server side processing before streaming the file back the user. |
It's a problem I think due to the nature of ajax call being async. A lot times you get empty zip file before content from Ajax was even returned. |
Downloading more than one file is common (like in the JSZip downloader example).
getBinaryContent
could take an array of urls :See also Stuk/jszip#168.
The text was updated successfully, but these errors were encountered: