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?
I have this problem too. :(
+1
Documentation says it will open in a new tab, but it doesnt...
iOS 12.4, Safari
+1
same for me , iOS 12.4 someone can help to fix or workaround ?
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...
https://github.com/eligrey/FileSaver.js/pull/673
please merge that if its correct to solve problem.
Is this fix in master ? I just import v2.05 and on safari pdf open same window not download.
Most helpful comment
+1
same for me , iOS 12.4 someone can help to fix or workaround ?