-
-
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
blob opens in current tab iOS Safari #581
Comments
I have this problem too. :( |
+1 |
+1 |
Same here, not working on iOS 12.4.* |
Strangely, if you put the button inside an iframe, it will work properly and iOS will pop up the "Do you want to Download ...pdf", allowing you to download it to your downloads folder. See example here: https://codepen.io/ianaya89/pen/JoRNyK (If you take this code out of the iframe, it fails. Add your own iframe instead of using the codepen one, and it works again). I'm not sure it's a good idea to rely on this behaviour. |
I have this problem and i register a pull request fot it... |
Is this fix in master ? I just import v2.05 and on safari pdf open same window not download. |
@ehsanzarei2 i don't see any difference in behavior on your branch. |
This project seems to be dead. Many problems not solved... :/ |
I found that you just need to add MIME Content Type of blob file become: application/octet-stream, it will download directly. |
+1 |
I have the same issue in Firefox 100.0.2 - When downloading a file using The current tab is replaced by the download. It works fine in Chromium. My server returns the following headers:
|
The firefox bug is already fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=1766420 |
thanks for a good find - when type is changed to application/octet-stream as mentioned earlier it does open in a new tab correctly in Firefox as well. |
I have a problem with saveAs function in iOS Safari -> blob is opened in the current tab and I want it to open in a new tab at least, I am aware that it won't trigger downloading the file but I just need to open the file in NEW tab.
I rummaged through issues and I came across conflicting information in this matter -> some say it opens in new tab, some do not and I am confused.
Does anyone have it implemented in a way that blob opens in a new tab, not the current one?
The text was updated successfully, but these errors were encountered: