koajs / bodyparser

Koa body parsing middleware
MIT License
1.31k stars 117 forks source link

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

Closed FossPrime closed 1 year ago

FossPrime commented 2 years ago

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

3imed-jaberi commented 1 year ago

In the near future, we will update our documentation, where we will add more information about all aspects to build a backend.

In the current stage, I recommend to useone of these modules;