Re: [whatwg/fetch] Add size limiter to `Body#formData` method (Issue #1592)

I'd be interested in this for both Node.js and Workers. I think it makes the most sense to add to all of the body mixin methods. Defining it as an options object makes perfect sense as I've also considered the possibility of adding a signal option to these to allow cancellation, e.g.

```
const ac = new Abort controller();
const form = await req.formData({ 
  maxSize: 10_000_000 /* 10MB */,
  signal: ac.signal
})
```


-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1592#issuecomment-1381383272
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1592/1381383272@github.com>

Received on Friday, 13 January 2023 06:43:08 UTC