Skip to content Skip to sidebar Skip to footer

Prompt Download For Safari And Chrome On Iphone

I'm using the download attribute for mp3 files eg Download File But when users with an iPhone or iPa

Solution 1:

Short answer: you can't.

Based on the MIME type, safari will start playing it. The only way to save files is to use iBooks for PDF to click "open with" if it is allowed.

iOS will typically interact with a file rather than download it, as that is a better experience. Some certain file manager applications will let you download a url. You could have a shortcut to copy the URL to the clipboard to help the user, but other than that I'm not sure there is a way on iOS.

Post a Comment for "Prompt Download For Safari And Chrome On Iphone"