Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force download mp3 for mobile site on iPhone

I'm working on a little mobile site for a musician and they want to be able to let users download a song for free on their mobile device. The problem I'm running into is that in Safari for iPhone the song plays in the browser no matter what and does not get added to the music library.

On Android I've been able to force a download which the user can then add to their music application of choice. I was hoping there was some way to get the song into the iPhone music library with out requiring some additional application or going through iTunes.

Any help would be greatly appreciated. Thanks!

like image 589
Andrew Fiorillo Avatar asked Jan 17 '11 18:01

Andrew Fiorillo


2 Answers

It is not possible to have Mobile Safari download a media file from your site to a device's library. That and many other parts of the iOS filesystem are protected from external access.

like image 164
BoltClock Avatar answered Oct 20 '22 03:10

BoltClock


Safari on iOS 13 and up finally supports file downloads, just like Android and Chrome.

like image 2
NerdSoup Avatar answered Oct 20 '22 01:10

NerdSoup