express-fileupload
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -20,3 +20,6 @@ var busboy, fs; | ||
req.busboy.on('file', function(fieldname, file, filename, encoding, mimetype) { | ||
var buf; | ||
buf = new Buffer(0); | ||
file.on('data', function(data) { | ||
buf = Buffer.concat([buf, data]); | ||
if (options.debug) { | ||
@@ -32,3 +35,3 @@ return console.log('Uploading %s -> %s', fieldname, filename); | ||
name: filename, | ||
data: file, | ||
data: buf, | ||
encoding: encoding, | ||
@@ -35,0 +38,0 @@ mimetype: mimetype, |
{ | ||
"name": "express-fileupload", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": "Richard Girges <richardgirges@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Simple express file upload middleware that wraps around connect-busboy", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6325
52