koa2-file-upload-local
v1.0.1
Published
koa middleware use upload file
Downloads
5
Readme
koa2-image-upload
koa2 middle to upload file
Features
- support upload to dir
options['upload'] = {
"url": '/api/upload',
"storeDir": 'xxx',
"provider": "local",
"mimetypes": ['image/png','image/bmp'], // 如果没有配置,将不进行类型检查 http://www.freeformatter.com/mime-types-list.html
"folder": "public"
}
How to use
app.use(uploader(options))
Requirements
- Node v6.0+
Workflow
npm install