maxFileSize not working as it should
MohamedKarrab opened this issue · comments
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