• I’m testing your plug-in for a client and it’s going real well. I think he’s really going to like it for his print shop. I’ll have to get the premium version for a final setup.

    I’m trying to specify different file formats allowed to test its exclusivity. It’s working so far but when I left it wide open to try anything, I’m not having success with .zip and .js files. When I state to allow those, they still are not being allowed. I’m wondering if there is additional settings I need to give perhaps in the htacess file?

    • This topic was modified 4 years, 11 months ago by David Borrink.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter David Borrink

    (@davidborrink)

    I should clarify that right now at this writing, I have no specified file formats in the shortcode so is should accept anything.

    Plugin Author nickboss

    (@nickboss)

    Hi, zip files can be easily allowed by setting Allowed File Extensions in the shortcode like this:

    *.*, *.zip

    However Javascript files are forbidden for security reasons. If you still want to enable them, here are the steps:

    1. Add the following lines in functions.php of your theme:

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

    2. Set Allowed File Extensions in the shortcode like this:

    *.*, *.zip, *.js

    Regards

    Nickolas

    Thread Starter David Borrink

    (@davidborrink)

    Hi Nick, thank you for the quick reply!

    Okay, that worked. I didn’t see documentation on your help or getting started pages about the syntax for that area, so this helps. I was assuming that it supposed to be like this:

    *.jpg, .pdf, .zip, .ai*

    And sometimes it was working, but it was sporadic. So the rule is that all for formats allowed is the *.* and all others are *.xx, is that correct? I’d like to suggest that you add that as a help icon next to that spot so that it’s clear how the syntax would be.

    And yes, that makes perfect sense that you don’t allow .js or any other coding formats. I was just trying out different formats in my test.

    Thread Starter David Borrink

    (@davidborrink)

    Is it possible to tie in Google ReCaptcha with this? Would an added function in functions.php make this possible?

    Plugin Author nickboss

    (@nickboss)

    Hi, Google Recaptcha is supported in the Pro version ??

    Regards

    Nickolas

    Thread Starter David Borrink

    (@davidborrink)

    Excellent, if my client approves the uploader, then we’ll no doubt go with the pro version. You did a nice job with this plug-in, Nickolas. I especially appreciate that it’s been around for years. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Allowed file types not accepting certain ones’ is closed to new replies.