DanZi
A uploader middleware for express application. DanZi (担子 dàn zǐ in Chinese) means a burden, which is usually used in oral language.
Installation
$ npm install danzi
Options
path
A writeable path to store the uploaded filestorage
A hash contains the cloud service info
Usage
It must be used with express, and be put after bodyParser, see example below.
Example
Write a simple app.js in your express project
var express = ;var danzi = ; var app = ;app ; app; app;console;
Then do a test
node app.js curl -X POST --form "file=@/path/to/file" "http://localhost:3000/upload"
You will find your files are put into directory public/upload
License
MIT