-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Saving multiple files #165
Comments
It works fine in Firefox, but doesn't in Chrome with enabled "Ask where to save each file before downloading" |
Yes, I just discovered this. If you try to download multiple files it will only download one. I think it's because the setTimeout here https://github.com/eligrey/FileSaver.js/blob/master/FileSaver.js#L146 reuses the save_link element. |
No, it's because of old issue in chromium https://code.google.com/p/chromium/issues/detail?id=162212 |
@melnikaite That may be a separate issue. The code @yehudahkay posted (and the code I tested) loops over several blobs and calls The patch I submitted (Hypercubed@04f232f) fixes this issue by moving the setting of |
Also notice that @yehudahkay working example doesn't use |
Bug about multiple file saving was fixed: eligrey/FileSaver.js#165
* 'master' of github.com:eligrey/FileSaver.js: Removing dead link from demo Update demo scripts Adding Edge to the browser support table Semi-workaround for eligrey#205 Update sourcecode date Fix issue eligrey#207 Fix eligrey#165, Saving multiple files License clarification Update version (to go with eligrey#175) update dist and readme more accurate base64 data processing; moved safari check to variables Update dist Update dist removed encodeURI and fixed Safari detection better regex check Workaround for downloading application/octet-stream in Safari Closes eligrey#164
This works in Chrome, but it's still not working in Safari. It only downloads the last file. Tested on Safari 12.0.3 (14606.4.5). |
Hi,
I tried saving multiple files in Chrome with
however it downloads the first file multiple times.
Doing this worked fine
Any solution? Thanks!
The text was updated successfully, but these errors were encountered: