Skip to content Skip to sidebar Skip to footer

A Tag With Download Attribute Not Work In Iphone?

I have to working for download video. I used the anchor tag and in which used download attribute. It would be working properly in all browser but in iphone, it directly plays that

Solution 1:

It's supported in iOS Safari from v13.1 onwards. See here: https://caniuse.com/#feat=download

In your content type header you can

You can hack it to work by setting the content type header in your server response

Content-Type: application/force-download

See this: Force file download from HTTP on iOS

Post a Comment for "A Tag With Download Attribute Not Work In Iphone?"