• Resolved Loni2Shoes

    (@loni2shoes)


    My users have intermittently been experiencing this error for weeks but, until today, I was unable to replicate it. I was FINALLY able to do so on our production site and again with a barebones site (2021 theme, no addons other than Forminator).

    This error seems to occur with *specific* images. A link for one such image is supplied below, along with a bare bones form you can use to test it.

    Test Form | Test Image

    No errors are logged, and no errors are shown in the developer console.

    Here is a Pastebin of the form configuration: https://pastebin.pl/view/eb86bbbb

    Thank you for your help!

    • This topic was modified 3 years, 5 months ago by Loni2Shoes.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @loni2shoes,

    Trust you are doing good and thank you for reaching out to us.

    I see that the image file you have shared is 2.1 MB in size and the upload file size limit on your form is configured as 2MB. Please increase the file size limit, that should fix the issue. You can find the option to configure the file size limit under the Settings tab of the Upload field.

    Reff: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#file-upload-field

    Feel free to get back to us if you need any further assistance.

    Kind Regards,
    Nebu John

    I had the exact same issue with a form on our camera club site.

    So, if filesize is the real issue why doesn’t a “File to big” error popup? Is there any place we can edit error messages? Or anything to do to make a contextually proper error message come up that’s relative to the actual problem?

    Thread Starter Loni2Shoes

    (@loni2shoes)

    As Karl says, the feedback from the form should be explicit about the issue. Otherwise, there is no point to filesize limits. I don’t *want* to allow huge files to be stored on my web server; they make the process of creating and restoring backups frustrating. Would you please correct this?

    • This reply was modified 3 years, 5 months ago by Loni2Shoes.
    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @loni2shoes @karl_peschel

    I’m assuming that you are using “single upload” currently in your forms, right?

    The “single upload” only uses the most generic HTML form upload method and it, indeed, doesn’t give such error as it just doesn’t know what’s the file size.

    A workaround for this is:

    – switch the upload field to “multiple”
    – set upload method (also in field settings, after switching to “multiple”) to “Ajax”
    – and make sure that “inline validation” is enabled

    If you still want to allow only one file you can do it by setting limit for “multiple” type upload to just 1 file.

    It will then give explicit error about file size right after file is selected.

    We are also planning to implement such ajax uploader (so it would work the same) for the single uploads in future though I don’t have an ETA. The workaround described above should do the job until then, though.

    Best regards,
    Adam

    Thread Starter Loni2Shoes

    (@loni2shoes)

    Okay, thanks for the heads up. I will make these configuration changes.

    *fingers crossed*

    Thanks. That seems to work. I tested the form and it does display the filesize error now.

    Still, if the single file field can’t actually verify filesize then why have a size limit option on it at all? It’s misleading.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    @karl_peschel

    I’m glad it’s working!

    As for single file upload – it just can’t check/report it “upfront”, that’s it. Upon submission it would give error but not right away after file is selected.

    Once the ajax uploader is fully implemented for single uploads as well, it will also work “immediately” upon file selection.

    Best regards,
    Adam

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @loni2shoes ,

    We haven’t heard from you for several days now, so it looks like you don’t need our assistance anymore.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Specific image causes “At least one field must be filled out’ is closed to new replies.