allow download of any files in uploads or img dirs
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
<FilesMatch "\.(?i:pdf|doc|docx|zip|txt|mp4)$">
|
||||
<FilesMatch "^(uploads|img)/.+">
|
||||
<If "%{QUERY_STRING} =~ /(^|&)download=1($|&)/">
|
||||
Header set Content-Disposition "attachment"
|
||||
</If>
|
||||
|
||||
Reference in New Issue
Block a user