-
-
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
Doesn't seem to work in Chrome 50 and later #205
Comments
I just tested it in Chrome 49.0.2623.75 on Ubuntu and it seems to work fine. |
I am having same issue in Chrome 50.0.2661.11, but it fails about 50% of the time. |
Same here. The separate condition for Chrome is causing problems for me on the current google-chrome-beta (50.0.2661.26): if (view.chrome) {
revoker();
} else {
setTimeout(revoker, arbitrary_revoke_timeout);
} https://github.com/eligrey/FileSaver.js/blob/master/FileSaver.js#L55 I admit I haven't delved into the code enough to understand the whole revocation process, but if I remove the condition and use the setTimeout code in Chrome 50, everything seems to be OK. Also, the setTimeout code seems to be compatible with the current google-chrome stable (49.0.2623.87). |
I deleted my remark, it works great on osx
|
This solution still isn't technically correct because it could take more than 40 seconds to download a file. I could simply not revoke any files, but then users would run into issues once they have saved a cumulative total of over 500MB ( https://bugs.chromium.org/p/chromium/issues/detail?id=375297 ) Complain to @sicking and @arunranga for creating and standardizing an incomplete revocation API.
If the blob revocation API doesn't get fixed in the next 2 years, remind me to double this value (as I would imagine as time goes on more complicated web apps are going to want to save larger and larger files). Sorry, not much more I can do except specify an arbitrary timeout. |
* '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
Still face the same issue on Windows and Mac Chrome 50. |
OSX, Chrome 65.0.3325.181, It doesn't work! |
Seems like the related Chromium issue was fixed in Chrome 66: https://bugs.chromium.org/p/chromium/issues/detail?id=827932 Was Chrome the only reason to have the setTimeout before calling revokeObjectURL() workaround? |
When I try to save a file, it fails about 95% of the time and says
Failed - no file
. The download on the left is one where it worked, while the one on the right is one where it failed.I see the same issue on the demo page. Even in the following very simple code (where
FileSaver.js
contains the contents of https://raw.githubusercontent.com/eligrey/FileSaver.js/master/FileSaver.min.js), it fails to work almost all the time:The text was updated successfully, but these errors were encountered: