koajs / bodyparser

Koa body parsing middleware
MIT License
1.3k stars 116 forks source link

Why are you recommending "co-busboy" in koa-bodyparser Readme if there is multer? #135

Closed najibghadri closed 4 years ago

dead-horse commented 4 years ago

multipart body should not parse in to memory with ctx.body because it can be too big , you should use stream to read it, like co-busboy.

najibghadri commented 4 years ago

I didn't have any idea about this, Thanks!

FossPrime commented 2 years ago

Multipart should be a separate section on the read me about your options, and why we recommend them. As well as some mention about threading, performance and resources use.

There is also https://www.npmjs.com/package/async-busboy which saves to os.tempdir... seems better integrated to koa and has gained popularity due to several articles recommending it. But it's clearly not koa specific like koa-bodyparser or @koa/multer

formidable uses streams...