node-formidable / node-formidable/formidable
maxFileSize not working as it should
Open
@GrosSacASac is already working on this.
Since Mar 5, 2024.
Area: APIs
Priority: Medium
Status: Accepted
Type: Bug
- Dominant language
- JavaScript
- Stars
- 7.2k
- Forks
- 689
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 2
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.