Results 1 to 3 of 3

Thread: Possibility to upload ZIP files in Contao ?

  1. #1
    New user
    Join Date
    05-23-13.
    Posts
    2

    Default Possibility to upload ZIP files in Contao ?

    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 !

  2. #2
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Re: Possibility to upload ZIP files in Contao ?

    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:
    Code:
    <FilesMatch "\.(?i:htm|php|js|css|htc|png|gif|jpe?g|ico|xml|csv|txt|swf|flv|eot|woff|svg|ttf|pdf|gz|zip)$">
    All in one line
    I've added zip in the example. The "?i:" part makes the statement case insensitive.

  3. #3
    New user
    Join Date
    05-23-13.
    Posts
    2

    Default Re: Possibility to upload ZIP files in Contao ?

    Problem Solved !

    Thank you very much for your help ! :D

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •