Force download mp4


#1

hello !

Anyone know an easy way to make all mp4 files served to be downloaded instead of opened in browser when the link is clicked ?

I tried this: server { location ~ .mp4$ { types { application/octet-stream .mp4; } default_type application/octet-stream; } }

but didn’t work… There is a lot of info there about NGINX but I’m too much of a noob to get my head around an actual fix.


#2

You should check this: https://wordpress.org/support/topic/force-download-instead-of-opening-file/

maybe you will find it usefull


#3

Nothing inthere was of any help sadly :frowning:


#4

I thought you might want to use that WordPress plugin. Anyway if you want to add things manually then try this: W3Schools
Example