From 1dba32f5fcc4e8778499a5145a110d34ecc6a0f1 Mon Sep 17 00:00:00 2001 From: vibhor-aggr Date: Sun, 12 Jul 2026 14:46:04 +0530 Subject: [PATCH] docs: clarify parts limit behavior --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index ed2a4e6d..7ba973fd 100644 --- a/README.md +++ b/README.md @@ -283,6 +283,10 @@ Key | Description | Default `headerPairs` | For multipart forms, the max number of header key=>value pairs to parse | 2000 `fieldNestingDepth` | Max number of nesting levels for field names (e.g. `a[b][c]` has 2 levels) | Infinity +The `parts` limit is triggered when busboy reaches the configured number of +parts, not only after that number is exceeded. If you want to allow an exact +number of fields and files, set `parts` to at least one more than that total. + Specifying the limits can help protect your site against denial of service (DoS) attacks. ### `fileFilter`