Web Analytics
TUTORIAL - Songs Playing in Browser instead of Downloading (FIXED) - StoreFront Forums

TUTORIAL Songs Playing in Browser instead of Downloading (FIXED)

Pedro

Forum Admin
Staff member
Trusted Uploader
Contributor
Aug 21, 2021
1,688
3
2,538
113
Genesis Forum
storefront.com.ng
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.

Code:
# Force file download for specific file types
<FilesMatch "\.(?i:mp3|mp4|mpg|mov|flv)$">
    ForceType application/octet-stream
    Header set Content-Disposition attachment
</FilesMatch>
 
Last edited:

Users Who Are Viewing This Thread (Total: 1, Members: 0, Guests: 1)