Closed FossPrime closed 1 year 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
https://expressjs.com/en/resources/middleware/body-parser.html
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;
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