I’ve got a download link on page:
<a href="124463.mp3">xxxx</a>
When user click it, the default file name on the pop up saving dialog is 124463.mp3, but now I want to change it to some better name. If there is no way to change the file’s name on server, How to achieve this?
I’ve got a download link on page: <a href=124463.mp3>xxxx</a> When user click it, the
Share
You can do it with an HTTP header. Apparently it’s
Content-disposition: attachment; filename=your_name_here.mp3. I don’t know if you can do this from javascript or html, though. You definitely can using php.From http://www.boutell.com/newfaq/creating/forcedownload.html