• Resolved liger

    (@liger)


    Hi,

    I have been having a lot of problems with Advanced file upload when uploading ZIP or RAR files created on Windows machines. Even though I can upload these files manually via WP Admin > Media > Add new, same files can not be uploaded via Advanced file upload of Caldera forms.

    I am constantly receiving “This file type is not allowed. Please try another.” error.

    If a zip file is selected from a Mac machine the mime is application/zip, but when on Windows machine it is application/x-zip-compressed.

    When defining allowed file types on Caldera Form setup, the “zip” extension only includes application/zip to the data-config attribute of the input. See below.

    {“custom_class”:””,
    “multi_upload”:1,
    “media_lib”:1,
    “multi_upload_text”:”ADD FILE”,
    “allowed”:[“application\/zip”,
    “image\/jpeg”,
    “application\/pdf”,
    “image\/png”],
    “max_size”:134217728,
    “notices”:{“file_exceeds_size_limit”:”File exceeds the maximum upload size for this site.”,”zero_byte_file”:”This file is empty. Please try another.”,”invalid_filetype”:”This file type is not allowed. Please try another.”}}

    I believe this might be the problem, and just because of this it caused a lot of issues and I hated the plugin.

  • The topic ‘File type upload poblem’ is closed to new replies.