koa2-file-upload-local

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i koa2-file-upload-local

Weekly Downloads

3

Version

1.0.1

License

ISC

Last publish

Collaborators

  • ronyang