GET
npm install koa2-formidable --save
API
const formidable = require('koa2-formidable')
const Koa = require('koa')
const app = new Koa()
app.use(formidable (opt))
opt is formidable options.
Use
let { body, files } = ctx.request
npm install koa2-formidable --save
const formidable = require('koa2-formidable')
const Koa = require('koa')
const app = new Koa()
app.use(formidable (opt))
opt is formidable options.
let { body, files } = ctx.request
npm i koa2-formidable
2,357
1.0.3
MIT
3.69 kB
4