I would like to download http://foobar.com/song.mp3 as song.mp3
, instead of having Chrome open it in its native <audio>
player in the browser.
How can I accmplish this?
I would like to download http://foobar.com/song.mp3 as song.mp3
, instead of having Chrome open it in its native <audio>
player in the browser.
How can I accmplish this?
You just need to make sure to send these headers:
The
send_file
method does it for you: