Hi,
I'm currently working with the Contao 2.11.4 version.
I wanted to upload ZIP files but Contao was unable to upload these files, are there any possibilities/suggestions to solve this problem ?
Thank You in advance :) !
Printable View
Hi,
I'm currently working with the Contao 2.11.4 version.
I wanted to upload ZIP files but Contao was unable to upload these files, are there any possibilities/suggestions to solve this problem ?
Thank You in advance :) !
Contao has a list of allowed file types, zip is in there by default. The list may be case sensitive though? So check if it works when you change the extension to .zip instead of .ZIP.
If you want to allow .ZIP, then the setting is in System -> Settings -> Upload file types.
You may also want to change the .htaccess so it allows for case insensitive file extension .zip. I'm not sure if that is not the default in Contao 2.11.x already. But it should look similar to:
All in one lineCode:<FilesMatch "\.(?i:htm|php|js|css|htc|png|gif|jpe?g|ico|xml|csv|txt|swf|flv|eot|woff|svg|ttf|pdf|gz|zip)$">
I've added zip in the example. The "?i:" part makes the statement case insensitive.
Problem Solved !
Thank you very much for your help ! :D