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

Readme

Keywords

none

Package Sidebar

Install

npm i multipart2

Weekly Downloads

2

Version

0.0.4

License

MIT

Last publish

Collaborators

  • leeqiang