Download File From Audio Tag By Customize File Name

Audio Play Tag
 
<audio controls='controls' autoplay> 
<source src='data:audio/mpeg;base64,".base64_encode($html)." ' ></audio>


Download Link/ Button 

<a href=' data:audio/mpeg;base64,".base64_encode($html)." ' download=".$file_name." (LunaCreativity.Com).mp3 >Download Mp3</a>


red - file source
$file_name - your file name
(LunaCreativity.Com).mp3 - (yoursitename).mp3


Post a Comment

0 Comments