unstale

npm / multer

multer

What changed in multer 2, from its official release notes, upgrade guides and advisories. Also covers @types/multer. Sources checked 2026-11-30.

2 breaking13 security6 new APIs and options4 behavior and defaults18 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

multer 243 changes

Breaking changes 2

  • Non-integer fileSize limits are rejected.

    2.4.0release notes

  • The minimum supported Node version is now 10.16.0, which may require upgrading older runtimes.

    2.0.0release notes

Security 13

New APIs and options 6

  • Multer exposes Busboy's defCharset option.

    2.4.0release notes

  • Adds a flush option to disk storage to fsync files before completion.

    2.4.0release notes

  • Multer exposes Busboy's fileHwm option.

    2.4.0release notes

  • Multer exposes Busboy's highWaterMark option.

    2.4.0release notes

  • Lets you choose how the request body reaches Busboy, enabling parsing of pre-consumed bodies such as Google Cloud Functions and Firebase rawBody.

    2.4.0release notes

  • Adds an opt-in fieldArrayIndexLimit option.

    2.3.0release notes

Behavior and default changes 4

Fixes and other changes 18

  • A failed upload is no longer added to the abort cleanup list.

    2.5.0release notes

  • A field value exactly at the fieldSize limit is now allowed.

    2.5.0release notes

  • Escaped field names are decoded, not just filenames.

    2.4.0release notes

  • Escaped filenames are decoded when reporting LIMIT_FILE_SIZE.

    2.4.0release notes

  • Improves the wording for the LIMIT_UNEXPECTED_FILE error code.

    2.4.0release notes

  • All limits are validated when multer is constructed.

    2.4.0release notes

  • Uploads can contain exactly the configured number of parts.

    2.4.0release notes

  • Files skipped by fileFilter no longer consume a maxCount slot.

    2.4.0release notes

  • A maxCount slot is reserved before yielding to an asynchronous fileFilter.

    2.4.0release notes

  • Preserves async hooks context in supported environments.

    2.3.0release notes

  • Falls back to the error code when no message mapping exists.

    2.3.0release notes

  • Prevents a process crash if fileFilter calls its callback more than once.

    2.3.0release notes

  • Allows files whose size is exactly at the fileSize limit.

    2.3.0release notes

  • Decodes WHATWG-escaped characters in file originalname.

    2.3.0release notes

  • Fixes error and abort handling.

    2.1.1release notes

  • Handles two Busboy error events.

    2.0.0release notes

  • Explicitly handles request errors.

    2.0.0release notes

  • Drains streams, fixing a regression in Node 18.

    2.0.0release notes