multipart2

0.0.4 • Public • Published

Node-uploader

属于一个express middleware; 文件上传成功后移动到指定的目录. 支持/%Y/%M/%D or /YYYY/MM/DD时间格式生成目录.

Install

    npm install multipart2

Setup

    uploader = require('uploader')	
    app.use(multipart({uploadDir: './uploads/%Y/%M/%D'}))

PS

不支持与 express.bodyParserconnect.bodyParser 一同使用,此模块用于替代connect.multipart(2.3.0已不支持).

example

见 example 目录

    coffee app.coffee
     or 
    node app.js

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    10
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    10
  • 0.0.3
    4
  • 0.0.2
    2

Package Sidebar

Install

npm i multipart2

Weekly Downloads

5

Version

0.0.4

License

MIT

Last publish

Collaborators

  • leeqiang