0
How to create a download button for a music download site
3 Antworten
+ 4
Put music files on the server. Then in HTML create simple hyperlink <a href="path/to/mp3/file">. It is that simple :D
+ 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>
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 -