'Upload' folder not working

You can limit the access to certain files in /upload using the .htaccess in the /upload folder.

Order Deny,Allow
Deny from all
<Files ~ "(?i)\.(png|jpg|jpeg|bmp)$">
   allow from all
</Files>

This allows access to image file types with case insensitive extension. You still need to allow access to the /upload folder in the root .htaccess by removing the line

RedirectMatch 403 /+upload

Cheers

3 Likes