Alternative for 'download' attribute in Safari/iOS

前端 未结 3 1031
栀梦
栀梦 2020-12-14 18:08

I have a blob created with a base64, and I need to make this data downloadable as a pdf.

I created this snippet:

    var blob = new Blob([byte]);
            


        
3条回答
  •  感动是毒
    2020-12-14 18:48

    The "target" attribute in Safari seems to override the "download" attribute. Currently, as to my knowledge, there is no way to solve this. So I think you have to wait for the next Safari version (13) which will be out in a few months.

提交回复
热议问题