File Upload Issue: Mandatory 2 Files Requirement Despite Configuration

Support MB Frontend Submission File Upload Issue: Mandatory 2 Files Requirement Despite Configuration

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #47025
    marcodedomarcodedo
    Participant

    I created a form with file_upload fields with a maximum limit of 2 files, but even if I upload just one file, it requires 2 files to be uploaded mandatorily. I also tried lowering the limit to 1 file, but it still asks for 2 files. Lastly, I tested with no minimum file requirement, and it still asks for 2 files. Could this be a bug?

    #47028
    PeterPeter
    Moderator

    Hello Marco,

    Do you have any other settings that set the requirement for the file_upload field? A custom code or a custom field setting.
    I just use a simple file_upload field without any specific settings and don't see that issue.

    #47030
    marcodedomarcodedo
    Participant

    I've set these like requested fields

    #47042
    PeterPeter
    Moderator

    Hello,

    Do you mean "required fields"? So I think it is working correctly.

    #47052
    marcodedomarcodedo
    Participant

    Yes, I mean this, and it doesn't work correctly, maybe I explained myself badly...

    When I set the mandatory fields with a maximum of 2 files, the system asks me for 2 files. I also tried removing the maximum file limit, but it continues to ask for 2 files.

    I hope I explained myself better.

    #47068
    PeterPeter
    Moderator

    Hello,

    I cannot reproduce the issue on my demo site. If you set required setting for the file_upload field, it only asks you to upload at least 1 file to save the post.
    Can you please recheck all the field settings in the builder or in a custom code on your site? If it still asks to upload 2 files, please share your site admin account by submitting this contact form https://metabox.io/contact/
    I will take a look.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.