richardgirges / express-fileupload

Simple express file upload middleware that wraps around busboy
MIT License
1.53k stars 260 forks source link

Getting issue after updating to 1.1.6-alpha.1 #160

Closed yatindratailor closed 5 years ago

yatindratailor commented 5 years ago

/project/server/node_modules/express-fileupload/lib/processMultipart.js:86 debugLog(options, New file opload ${field} -> ${name}, bytes: ${getFileSize()}); ^

ReferenceError: field is not defined at Busboy.busboy.on (/var/www/html/malta_react/server/node_modules/express-fileupload/lib/processMultipart.js:86:42) at Busboy.emit (events.js:189:13) at Busboy.emit (/var/www/html/malta_react/server/node_modules/busboy/lib/main.js:38:33) at PartStream. (/var/www/html/malta_react/server/node_modules/busboy/lib/types/multipart.js:213:13) at PartStream.emit (events.js:189:13) at HeaderParser. (/var/www/html/malta_react/server/node_modules/dicer/lib/Dicer.js:51:16) at HeaderParser.emit (events.js:189:13) at HeaderParser._finish (/var/www/html/malta_react/server/node_modules/dicer/lib/HeaderParser.js:68:8) at SBMH. (/var/www/html/malta_react/server/node_modules/dicer/lib/HeaderParser.js:40:12) at SBMH.emit (events.js:189:13)

RomanBurunkov commented 5 years ago

Hi @yatindratailor ,

I've fixed that and published alpha.2.

RomanBurunkov commented 5 years ago

I believe that was fixed in alpha.2