Skip to content Skip to sidebar Skip to footer

Saving Csv File Using Blob In Safari

I have codes below to generate the download link so that users could download the .csv file on my site. var link = document.createElement('a'); link.id = 'csvDwnLink'; window.URL

Solution 1:

I did a quick research - I looks like Safari does not support what you are trying to achieve.

The reason why your solution works in Chrome (and Firefox) is that they support the download attribute - Safari doesn't yet.

Solution 2:

Safari 10.1+ supports "download" attribute. It should work now.

https://github.com/eligrey/FileSaver.js/issues/129#issuecomment-275221240

Post a Comment for "Saving Csv File Using Blob In Safari"