Disclosure: Hosting Canada is community-supported. We may earn a commission when you make a purchase through one of our links. Learn more.

To ensure media files are downloaded instead of being played

You can ensure that any media files instead of being treated by the browser as played are treated as a download.

For enabling this, you need to make an .htaccess file by following the guidance and the instructions that include the text below.

AddType application/octet-stream .zip .mp3 .mp

The above code instructs the Apache Web Server for treating .mp3, .mp4, and .zip as downloadable and they are to be used instead of identifying them as audio/video/zip files in the MIME type.