Support » Plugin: WordPress File Upload » Can’t upload .zip files

  • Resolved manek43509

    (@manek43509)


    I have added various file extensions (including .zip) to my shortcake, but I still get an error message on upload. Any idea what I’ve done wrong?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi, can you send me the shortcode to check?

    Regards

    Nickolas

    manek43509

    (@manek43509)

    [wordpress_file_upload uploadpath="uploads/submissions" fitmode="responsive" maxsize="5000" placements="filename+selectbutton+uploadbutton/userdata/userdata/message" uploadpatterns=”*.zip,*.rar,*.pdf,*.jpg,*.jpeg,*.tif,*.tiff,*.psd,*.ai,*.eps,*.png,*.svg,*.logicx,*.als,*.alc,*.sib,*.reason,*.alp,*.npr,*.shw,*.sbk ” notify="true" notifyrecipients="mail@manek.org.uk, %useremail%" notifysubject="File Upload Notification from Manek.org.uk" notifymessage="Hello,%n%%n% This is an automatic delivery message to notify you that a new file has been uploaded to Manek.org.uk with the following message:%n%%n%%dq%%userdata1%%dq%" successmessagecolors="#454545,#ffffff,#ea8a1a" warningmessagecolors="#454545,#ffffff,#ea8a1a" failmessagecolors="#454545,#ffffff,#ea8a1a" userdata="true" userdatalabel="Your message|t:text|s:left|r:0|a:1|p:inline|d:" userdatalabel2="Your email|t:email|s:left|r:0|a:1|v:1|p:inline|d:|g:0"]

    Plugin Author nickboss

    (@nickboss)

    Hi, everything seems ok. The only thing I noticed in the shortcode is the double-quotes symbol in uploadpatterns. It is (”), which is not a normal double-quotes symbol (“).

    Change it manually in the shortcode and try again.

    Regards

    Nickolas

    manek43509

    (@manek43509)

    Thank you! That seems to have fixed it.

    Plugin Author nickboss

    (@nickboss)

    ok nice

    Regards

    Nickolas

    manek43509

    (@manek43509)

    Now I’m getting the same problem with .aif files – even though I have already added that file extension to the shortcode…

    Plugin Author nickboss

    (@nickboss)

    Here is a link where you can check if the plugin supports specific extensions.

    You will notice that aif is blacklisted (for security reasons).

    However, if you still want to use it, you need to put the following 2 lines inside functions.php file o your theme:

    global $wfu_extension_blacklist;
    if ( isset($wfu_extension_blacklist["aif"]) ) unset($wfu_extension_blacklist["aif"]);

    Regards

    Nickolas

    manek43509

    (@manek43509)

    OK, sure… Why is that? I understand that for certain system filetypes (you don’t want people uploading random script to your server, I guess?!), but .aif is an audio file. What’s the security issue there?

    I’m going to allow it in functions.php, as I am a musician and audio engineer who needs to be able to work with high-quality, lossless sound files. Logic Pro and Garageband both bounce uncompressed audio to .aif files as standard, and that is what a lot of my clients send me.

    I’ll let you know if I have any issues. Thanks for always responding quickly and clearly to my queries!

    Plugin Author nickboss

    (@nickboss)

    Well aif files may also refer to OS/2 application information data or SmartWare executable program file or some other categories (https://www.file-extensions.org/). Some of these categories may contain executable code. So the plugin has blacklisted it as a security measure.

    Nevertheless, you do not fall into this category.

    Regards

    Nickolas

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.