Koa middleware handling multipart/form-data.
You can use this module if you need your Koa app to parse 'multipart/form-data'.
Parses requests having type: 'multipart/form-data' and set ctx.body with the parsed stream.
npm install @sigfox/koa-multipart-formkoaMultipartForm(options)
options(Object) (default: {}) You can either decide to pass an object that will be used as options for formidable.IncomingForm or the instance of it directly:- Object: The options that will be passed to IncomingForm.
- instance of formidable.IncomingForm: The instance of IncomingForm that will be used for multipart processing.
const Koa = require('koa');
const koaMultipartForm = require('koa-multipart-form');
const app = new Koa().use(koaMultipartForm()).listen();npm testThis project is licensed under the MIT License - see the LICENSE file for details.