0

How to create a download button for a music download site

16th Feb 2017, 1:35 AM
Boluwatife Akintola
Boluwatife Akintola - avatar
3 Réponses
+ 4
Put music files on the server. Then in HTML create simple hyperlink <a href="path/to/mp3/file">. It is that simple :D
16th Feb 2017, 2:06 AM
Jakub Stasiak
Jakub Stasiak - avatar
+ 1
You can use an hyperlink with the download attribute : <a href = "path/file.mp3" download>My favorite song !</a> or you can use the a form : <form method = "get" action = "path/file.mp3"> <button type="submit">My favorite song !</button> </form>
16th Feb 2017, 2:14 AM
Christophe Nadeau
Christophe Nadeau - avatar
0
I have used this code to download music on my website and its 100% working <a href="music path" download>Download</a> If you have any doubt you can ask . Thanks -
23rd Aug 2020, 12:13 PM
Marzooq Khan
Marzooq Khan - avatar