Skip to content

maxFileSize not working as it should #971

Description

@MohamedKarrab

Support plan

  • Which support plan is this issue covered by? (Community, Sponsor, Enterprise): community
  • Currently blocking your project/work? (yes/no): yes
  • Affecting a production system? (yes/no): somehow

Context

  • Node.js version: 21.6.2
  • Release Line of Formidable (Legacy, Current, Next): latest
  • Formidable exact version: latest
  • Environment (node, browser, native, OS): node
  • Used with (popular names of modules): idk

What are you trying to achieve or the steps to reproduce?

I think the maxFileSize check only happens after the file is fully uploaded, how to make it so it's immediate after bytes received exceed the set limit?

What was the result you got?

Only after file fully uploaded

What result did you expect?

Immediately after limit is reached

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area: APIsThings related to external and internal APIsPriority: MediumThis issue may be useful, and needs some attention.Status: AcceptedIt's clear what the subject of the issue is about, and what the resolution should be.Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions