as title says, in some browsers like "Firefox" video/audio files are playing instead of downloading.
and also i know, users can disable this in browser: https://support.mozilla.org/en-US/questions/960216
but i need to prevent this from server side, is this possible?
also this can be done by .htaccess in Apache web-server:
but how can i use this code in nginx ? (i try http://winginx.com/en/htaccess --- http://www.anilcetin.com/ --- https://labs.gidix.de/nginx/ but no success to converting)
or is there any way to do this from ssh (web-server config file, php.ini ,mime.types ...) ?
Regards
and also i know, users can disable this in browser: https://support.mozilla.org/en-US/questions/960216
but i need to prevent this from server side, is this possible?
also this can be done by .htaccess in Apache web-server:
Code:
<FilesMatch "\.(mov|mp4|mp3|jpg|pdf)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
but how can i use this code in nginx ? (i try http://winginx.com/en/htaccess --- http://www.anilcetin.com/ --- https://labs.gidix.de/nginx/ but no success to converting)
or is there any way to do this from ssh (web-server config file, php.ini ,mime.types ...) ?
Regards