Support » Plugin: WooCommerce Upload My File » Upload file security & filetype restrictions not working

  • Resolved mengsel

    (@mengsel)


    Hi there,

    First of all thanks for making this great basic functionality freely available. Much love from the community. My question is two-pronged:

    1. Is there any type of file security that can be implemented? Right now, if I have the uploaded file’s URL, I can access it even when I’m a not logged-in user. Is there any way to make the uploads more secure?

    2. The basic (free) version provides a field where I can specify file types to allow for upload, but it doesn’t seem to work. I put down “.jpg,.png,.doc,.pdf” – but when I tried to upload a PDF as a customer I get a “filetype: pdf is not allowed” error message…

    Thanks for your help! And please do let me know how much the pro version is. If the price is agreeable and the functions match, I’d consider it, certainly 🙂

    https://wordpress.org/plugins/woocommerce-upload-my-file/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WP Fortune

    (@bpluijms)

    Hello,

    All information for PRO is found inside the plugin. I can not give you further information on the WP.org forums.

    Uploads are stored in folders under wp-content/uploads and are saved with a different name. This makes it hard to find them, however, some hosts enable directory listing which allows people to browse your file and folder structure. To disable directory listing you can easily add the following to your main .htaccess file:

    Options -Indexes

    We’ve tested the FREE version and as far as we can test the whitelisting for files should work correctly. Are you sure all settings are correct?

    Thread Starter mengsel

    (@mengsel)

    Hi Bart,

    Great, I’ll have a closer look at the plugin files for info on the PRO version and any other commercial inquiries. Regarding the free version, I’ve specified the whitelisted filetypes as:
    .jpg,.png,.doc,.pdf

    Or should it rather be:
    jpg,png,doc,pdf
    without the periods?

    Plugin Author WP Fortune

    (@bpluijms)

    Hello Mengsel,

    I think it’s the dots inside the filenames which are causing this issue.
    In the just released version 0.3.7. we’ve modified the script a bit so the dots are automatically removed for better usability.

    Could you let me know if this solves the issue?

    Best regards,
    Bart

    Thread Starter mengsel

    (@mengsel)

    Hi Bart,

    Thanks a lot for your help. I noticed indeed the extensions should be specified without dots. This has solved the issue, thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Upload file security & filetype restrictions not working’ is closed to new replies.