mscdex / busboy

A streaming parser for HTML form data for node.js
MIT License
2.84k stars 213 forks source link

Support `limits.totalSize` for multipart forms #351

Open TryingToImprove opened 8 months ago

TryingToImprove commented 8 months ago

This is attempt on trying to add a configuration for limitting the total size of the multipart form instead of the fieldSize and fileSize.

The reason for this is that Next uses this package, however they work with bodySizeLimit and are there ignored causing causing form fields to be truncated (https://github.com/vercel/next.js/issues/59277) since they do not allow configuring the limits which busboy supports

I am sure this is not the correct way, however any guidance will help