• Hi Ardian, Thanks for this awesome & great plugin. i have voted you 5 star (*****).
    I need a little support. I want to upload zip file with ajax upload field and at the same time I want to unzip the uploaded file to the server with all recursive folders structure in the zip file.
    Is it possible to unzip the zip file?
    I noticed that you have done with jpg, jpeg & image files with compression or cropping etc. How about zip file?

    https://ww.wp.xz.cn/plugins/ajax-upload-for-gravity-forms/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ovann86

    (@ovann86)

    Hey,

    I would not allow people to upload a ZIP file and would deffinately not do any server side processing of the ZIP file (extracting, handling of the contents), for two reasons:

    1. processing power/time – the ZIP can contain 1 – unfitinity files. If the extract and processing didnt complete before the browser/server decides it’s a time-out the user would see a ‘page has not loaded’ message.

    2. risk of virus or malware – what’s stopping someone from putting a PHP file in that zip, then running it from your server (you can do some advanced configuration to stop this from happening). Or someone could upload a EXE, then when a backend user goes to open it their computer is infected. The safest way is to control file types allowed, allowing ZIPs would allow any file type.

    You could try changing the settings (Forms -> Settings -> Ajax Upload menu) to allow a zip file add a pipe then zip to the list of accepted file types, e.g. |zip
    But I wouldnt recommend it.

    Thread Starter Md Akter Hosen

    (@tareqhi)

    Thanks a lot Dude… I understand what you mentioned.
    Keep it continue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Zip file upload support’ is closed to new replies.