-
Notifications
You must be signed in to change notification settings - Fork 352
Open
Labels
addition/proposalNew features or enhancementsNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interestMoving the issue forward requires implementers to express interesttopic: api
Description
Right now there is no way to call Body#formData
on arbitrary user input without potentially causing an OOM. It would be great if we could constrain the formData
parser so it stops parsing if a body exceeds a certain size.
Example API:
const form = req.formData({ maxSize: 10_000_000 /* 10MB */ })
If the body size exceeds the max size, a QuotaExceededError
DOMException
should be thrown.
This might make sense for .text()
, .blob()
, .arrayBuffer()
, and .json()
also.
petamoriken, ar-nelson, hax, zkulbeda, styfle and 2 more
Metadata
Metadata
Assignees
Labels
addition/proposalNew features or enhancementsNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interestMoving the issue forward requires implementers to express interesttopic: api