html5 - How to assign a filename to a direct .mp3 download? -


first of all, let me state have pretty 0 knowledge of code. own http://www.cultureleak.com , i'm changing way people can download off site.

i have direct .mp3 links (f.e. http://dopefile.pk/mp3embed-74bktdjz1web.mp3) , when click them save audio.mp3 (audio1.mp3, audio2mp3 etc). want assign them filename. tried doing via html5 download attribute.

i can't work (and it's not browser related). ideas/is possible give link assigned name?

just use downloadattribute name file (not download) (click here)

<a href="audio/youraudio.mp3" download="youraudioname.mp3">download</a> 

Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -