allow download of any files in uploads or img dirs

This commit is contained in:
2023-02-24 14:41:25 +10:00
parent 37e59bb8a5
commit 40dce90aa0

View File

@@ -4,7 +4,7 @@
</IfModule> </IfModule>
<IfModule mod_headers.c> <IfModule mod_headers.c>
<FilesMatch "\.(?i:pdf|doc|docx|zip|txt|mp4)$"> <FilesMatch "^(uploads|img)/.+">
<If "%{QUERY_STRING} =~ /(^|&)download=1($|&)/"> <If "%{QUERY_STRING} =~ /(^|&)download=1($|&)/">
Header set Content-Disposition "attachment" Header set Content-Disposition "attachment"
</If> </If>