bodyparser icon indicating copy to clipboard operation
bodyparser copied to clipboard

[FR] Recommend koajs/koa-body instead of co-busboy for multipart

Open FossPrime opened this issue 3 years ago • 0 comments

co-busboy has poor ergonomics for koa use and requires a stack of app level dependencies to handle multipart forms. Meanwhile, the formidable based, streaming, first party koajs/koa-body exists...

https://github.com/koajs/koa-body Sandbox: https://codesandbox.io/s/koa-body-upload-tt3c2 https://www.npmjs.com/package/formidable https://stackoverflow.com/questions/55872109/how-to-upload-file-using-koa

How express deals with it:

https://expressjs.com/en/resources/middleware/body-parser.html Screenshot from 2021-10-19 06-50-16

FossPrime avatar Oct 13 '21 16:10 FossPrime