Closed yinshuxun closed 6 years ago
maybe you should it https://github.com/danmin25/form-body
you can use koa-body, it support ‘json’, 'form', 'multipart'. see code:
const koaBody = require('koa-body');
const app = new Koa();
app.use(koaBody({multipart: true}));
@XdCareWy i have get it,thanks!!
you can use koa-body, it support ‘json’, 'form', 'multipart'. see code:
const koaBody = require('koa-body');
const app = new Koa();
app.use(koaBody({multipart: true}));
it has file filtering issues i think
the options not work
{ enableTypes: ['json', 'form', 'multipart'] }