express-fileupload
Advanced tools
Comparing version 1.1.6-alpha.1 to 1.1.6-alpha.2
@@ -51,3 +51,3 @@ const Busboy = require('busboy'); | ||
file.on('limit', () => { | ||
debugLog(options, `File size limit reached for ${field} -> ${name}, bytes: ${getFileSize()}`); | ||
debugLog(options, `File size limit reached for ${fieldname} -> ${filename}, bytes: ${getFileSize()}`); | ||
// Run user defined limit handler if it has been set. | ||
@@ -59,3 +59,3 @@ if (isFunc(options.limitHandler)){ | ||
if (options.abortOnLimit) { | ||
debugLog(options, `Aborting upload because of size limit ${field} -> ${name}, bytes: ${getFileSize()}`); | ||
debugLog(options, `Aborting upload because of size limit ${fieldname} -> ${filename}, bytes: ${getFileSize()}`); | ||
closeConnection(413, options.responseOnLimit); | ||
@@ -88,3 +88,3 @@ cleanup(); | ||
// Debug logging for a new file upload. | ||
debugLog(options, `New file opload ${field} -> ${name}, bytes: ${getFileSize()}`); | ||
debugLog(options, `New file opload ${fieldname} -> ${filename}, bytes: ${getFileSize()}`); | ||
}); | ||
@@ -91,0 +91,0 @@ |
{ | ||
"name": "express-fileupload", | ||
"version": "1.1.6-alpha.1", | ||
"version": "1.1.6-alpha.2", | ||
"author": "Richard Girges <richardgirges@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Simple express file upload middleware that wraps around 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
1205508