WordPress.org

Forums

Gravity Forms Advanced File Uploader
[resolved] Diffrent errors on uploading (6 posts)

  1. martin.kreativermoment
    Member
    Posted 1 year ago #

    All of a sudden I get error messages

    I tried to upload a file with a JPG extension I got this:

    File has an invalid extension, it should be one of jpeg, bmp, png, gif.

    I have added JPG and jpg to the allowed fileextesions in Pluginoptiions
    and also in the form itself.

    I tried to upload a jpg with a size 582kb and got this:

    File is too large. Max 524288 M

    Thanks for helping

    https://wordpress.org/plugins/gravity-forms-advanced-file-uploader/

  2. martin.kreativermoment
    Member
    Posted 1 year ago #

    The only thing i could imaging it came from is, that i've set up a php.ini and made something wrong ther. I deleted the file... nothing changed

  3. martin.kreativermoment
    Member
    Posted 1 year ago #

    I've also reinstalled the plugin... didn't help

  4. martin.kreativermoment
    Member
    Posted 1 year ago #

    I can't edit my previous post, sorry for making so much o them:

    Maybe you should also know I moved my wordpress installation to antoher server.

  5. martin.kreativermoment
    Member
    Posted 1 year ago #

    Found a sollution by editing class.core.init.uploader.php

    Changing

    //Set security default - images only
    $uploader->allowedExtensions = array('jpeg', 'bmp', 'png', 'gif', 'JPG', 'jpg');

    and this

    //Set security default - 0.5 MB
    $uploader->sizeLimit = 5.5 * 1024 * 1024;

  6. ben.moody
    Member
    Plugin Author

    Posted 1 year ago #

    Hi

    You will need to check the validation settings of the uploader field iteself in the form creation view of gravity forms.

    Both these arrays take data from the uploader field config in the gravity forms form edit view.

    Thanks

    Ben

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.