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

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

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -