Skip to content

[BUG] File size exceeded error not handled and submit button is still active and allows submission #5990

@uppalabharath

Description

@uppalabharath

Describe the bug

  • Use File component and configure max size to 10 MB
  • Upload a file of size more than 10 MB
  • Observe that error is shown that file exceeded size limit
  • Submit button is still enabled and submitting sends empty file data

Version/Branch
master (https://formio.github.io/formio.js/app/builder)

To Reproduce
Steps to reproduce the behavior:

  • Use File component and configure max size to 10 MB
  • Upload a file of size more than 10 MB
  • Observe that error is shown that file exceeded size limit
  • Submit button is still enabled and submitting sends empty file data

Expected behavior

  • Disable submit button if there are any errors

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions