jQuery的文件上传中间件
jQuery-File-Upload Express.js中间件。 基于的服务器代码
安装:
$ npm install jquery-file-upload-middleware
用法:
var express = require ( "express" ) ,
upload = require ( 'jquery-file-upload-middleware' ) ;
var app = express ( ) ;
// configure upload middleware
upload . configure ( {
uploadDir : __dirname + '/public/uploads' ,
uploadUrl : '/uploads' ,
1