Skip to content

feat: Multer limit option validation and error messages #1335

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ShubhamOulkar
Copy link
Member

Task List

  • Validate all limits options using checkLimitValue
  • Throw MulterError with detailed context for invalid limit values
  • Ensure getLimits only accepts plain objects and validates all keys
  • Improve error reporting and context for easier debugging
  • documentation (if needed)

closes #1132

@ShubhamOulkar ShubhamOulkar changed the title feat: enhance Multer limit option validation and error messages feat: Multer limit option validation and error messages Jun 11, 2025
@ShubhamOulkar ShubhamOulkar marked this pull request as draft June 11, 2025 06:12
@coveralls
Copy link

coveralls commented Jun 11, 2025

Coverage Status

coverage: 98.909% (+0.4%) from 98.485%
when pulling f486b10 on ShubhamOulkar:busboy-limits
into e259a7e on expressjs:main.

@ShubhamOulkar ShubhamOulkar marked this pull request as ready for review June 11, 2025 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MulterError: File too large not thrown when fileSize is floating point
2 participants