eligrey / FileSaver.js

An HTML5 saveAs() FileSaver implementation
https://eligrey.com/blog/saving-generated-files-on-the-client-side/
Other
21.58k stars 4.38k forks source link

"Safari cannot download this file" error on iOS #766

Closed rcoundon closed 2 years ago

rcoundon commented 2 years ago

Using file-saver in Safari on iOS for the download of an .ics file that's generated client side, causes a dialog to be shown that simply says "Safari cannot download this file" Doing the same on MacOS with Safari works fine. Demonstrated on iOS 15.5 and 15.6, and also iOS 14.8 on an iPhone 6s

Is there anything we can do with file-saver to work around this, or could this be a bug?

rcoundon commented 2 years ago

This was a problem with the content of the file, not the mechanics of the download