Force download mp4

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.

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

maybe you will find it usefull

Nothing inthere was of any help sadly :frowning:

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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.