Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maxFileSize not working as it should #971

Open
MohamedKarrab opened this issue Mar 4, 2024 · 1 comment
Open

maxFileSize not working as it should #971

MohamedKarrab opened this issue Mar 4, 2024 · 1 comment
Assignees
Labels

Comments

@MohamedKarrab
Copy link

MohamedKarrab commented Mar 4, 2024

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

@GrosSacASac GrosSacASac self-assigned this Mar 5, 2024
@tunnckoCore
Copy link
Member

@MohamedKarrab I think the maxFileSize check only happens after the file is fully uploaded

I think so too. But I thinko you can work around that by using onPart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants