• Resolved martin.kreativermoment

    (@martinkreativermoment)


    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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter martin.kreativermoment

    (@martinkreativermoment)

    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

    Thread Starter martin.kreativermoment

    (@martinkreativermoment)

    I’ve also reinstalled the plugin… didn’t help

    Thread Starter martin.kreativermoment

    (@martinkreativermoment)

    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.

    Thread Starter martin.kreativermoment

    (@martinkreativermoment)

    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;

    Plugin Author ben.moody

    (@benmoody)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Diffrent errors on uploading’ is closed to new replies.