express-fileupload
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -53,3 +53,3 @@ var busboy = require('connect-busboy'); | ||
return req.files[fieldname] = { | ||
var newFile = { | ||
name: filename, | ||
@@ -71,2 +71,11 @@ data: buf, | ||
}; | ||
if (!req.files.hasOwnProperty(fieldname)) { | ||
req.files[fieldname] = newFile; | ||
} else { | ||
if (req.files[fieldname] instanceof Array) | ||
req.files[fieldname].push(newFile); | ||
else | ||
req.files[fieldname] = [req.files[fieldname], newFile]; | ||
} | ||
}); | ||
@@ -73,0 +82,0 @@ }); |
{ | ||
"name": "express-fileupload", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"author": "Richard Girges <richardgirges@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Simple express file upload middleware that wraps around connect-busboy", |
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
9844
98