Skip to content

feat: expose busboy defCharset, highWaterMark and fileHwm options - #1465

Open
UlisesGascon wants to merge 1 commit into
mainfrom
feat/busboy-options
Open

feat: expose busboy defCharset, highWaterMark and fileHwm options#1465
UlisesGascon wants to merge 1 commit into
mainfrom
feat/busboy-options

Conversation

@UlisesGascon

Copy link
Copy Markdown
Member

Passes busboy's defCharset, highWaterMark and fileHwm through multer(opts), next to the existing defParamCharset, using busboy's option names. Nothing changes when they are not set — busboy keeps its defaults (covered by a test). Note: busboy does not validate the charset name; an unknown defCharset yields undefined field values.

Supersedes #488 and #1102 (authors credited as co-authors).

Closes #488
Closes #1102
Closes #320

Co-authored-by: yokomotod <yokomotod@gmail.com>
Co-authored-by: Markku Roponen <roponen.markku@gmail.com>
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 99.721% (+0.004%) from 99.717% — feat/busboy-options into main

@UlisesGascon UlisesGascon added this to the 2.4.0 milestone Aug 29, 2026
@UlisesGascon UlisesGascon self-assigned this Aug 29, 2026

@bjohansebas bjohansebas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kilisamemarisaaa kilisamemarisaaa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independently verified on Windows with Node v24.12.0 at 345bfad: npm test passes (123 passing, 2 pending) and npm run lint is clean. The new busboy-options coverage exercises default/custom defCharset, .any() propagation, fileHwm, and parser highWaterMark; I also traced both _makeMiddleware and any() option paths and found no correctness or compatibility issues. My account cannot submit an APPROVE review without explicit repository access, so this is recorded as a factual verification comment.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

expose busboy's options (highWaterMark/fileHwm/defCharset/preservePath)

4 participants