Downloading a music file instead of playing it in the browser
To make songs download instead of playing in browser, go to file manager. Edit .htaccess and add this code at the bottom.
To make songs download instead of playing in browser, go to file manager. Edit .htaccess and add this code at the bottom.
Code:
<FilesMatch ".(?i:mp3)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
<FilesMatch ".(?i:mp4)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
<FilesMatch ".(?i:mpg)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
<FilesMatch ".(?i:mov)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
<FilesMatch ".(?i:flv)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>