• Resolved luizrsk

    (@luizrsk)


    I noticed that it’s not possible to edit the error messages, and that they are somewhat generic, making investigation difficult.

    I configured a form for my client to attach an image, but I noticed that when the client uploads an image smaller than 1MB, the form doesn’t trigger the error message and instead displays a generic one.

    Would it be possible to remove this limitation?
    Also, would it be possible to edit these error messages?

    I’m attaching the error message.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Ahmed Amir Hossain

    (@ahmedamir)

    Hi luizrsk,

    Thank you for reaching out to us, and we sincerely apologize for the delayed response.

    In MetForm, you do have the option to disable the file size limit. Please refer to this screenshot for guidance: https://prnt.sc/6nA34GRWas6U

    However, at the moment, there is no option available to customize or edit the error messages. We understand how important this can be for better user experience.

    We kindly request you to submit this as a feature request using the following link so our development team can consider it in future updates.

    Please let us know if you need any further assistance. We’re here to help.

    Regards,
    Amir

    Thread Starter luizrsk

    (@luizrsk)

    Hello Ahmed.

    In my form, that size limit is already disabled. The problem only occurs with files smaller than 1 MB. If people attach larger files, the error I mentioned earlier doesn’t occur.

    Link for testing: https://lendasdeazeroth.com.br/forms/

    Link to an image I can’t upload: https://drive.google.com/file/d/1wNRcLf26UyjZ8znirtxERIH-J6BIJLWt/view?usp=drive_link

    Note: .png, .jpg, .jpeg, .webp, etc. file extensions are allowed.

    Plugin Support Ahmed Amir Hossain

    (@ahmedamir)

    Hi luizrsk,

    Hope you’re doing well. I can see that the form was submitted with a file size below 1 MB. For better clarity, please take a look at this video: https://d.pr/v/Gb6NSh.

    This issue may be caused by caching. Please clear all types of cache, including server cache, WordPress (optimization plugin) cache, CDN cache, and browser cache, and then try again.

    Feel free to reach out if you need any further assistance.

    Best regards,
    Amir

    Thread Starter luizrsk

    (@luizrsk)

    I noticed you used a different file, but I found the problem. This problem wasn’t with the file itself, but rather with the file extension. The filename I shared is logo (1).png, but the file signature starts with FF D8 FF E0…JFIF, which is a classic JPEG header. MetForm validates not only the extension but also the actual MIME type of the file; that is, the extension says it’s PNG, but the signature says it’s JPEG.

    This is what’s causing the error when uploading the file. Well, I had to manually adjust the file-data-validation.php and action.php files to correct this problem.

    Plugin Support Ahmed Amir Hossain

    (@ahmedamir)

    Hi luizrsk,

    I hope you’re doing well. If you use the original PNG file, you shouldn’t encounter any issues. However, problems may arise if you simply rename file’s extension to PNG. Please watch the video for a clearer understanding. https://d.pr/v/JG8CDy

    Regards,
    Amir

    Plugin Support Ahmed Amir Hossain

    (@ahmedamir)

    Hi There,

    We haven’t received any response from you and assuming that the issue is resolved now. For that reason, I’m marking this thread as resolved.

    If you need any further assistance on this matter, feel free to create a new thread. We will be happy to assist you.

    Best Regards,

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.