-
-
Save blakmatrix/1952d3fa1a3ab5f1dcc2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function IncomingForm(opts) { | |
if (!(this instanceof IncomingForm)) return new IncomingForm(opts); | |
EventEmitter.call(this); | |
opts=opts||{}; | |
this.error = null; | |
this.ended = false; | |
this.maxFieldsSize = opts.maxFieldsSize || 2 * 1024 * 1024; | |
this.keepExtensions = opts.keepExtensions || false; | |
this.uploadDir = opts.uploadDir || os.tmpDir(); | |
this.encoding = opts.encoding || 'utf-8'; | |
this.headers = null; | |
this.type = null; | |
this.hash = false; | |
this.bytesReceived = null; | |
this.bytesExpected = null; | |
this._parser = null; | |
this._flushing = 0; | |
this._fieldsSize = 0; | |
this.openedFiles = []; | |
return this; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error: TypeError: Object #<Object> has no method 'tmpDir' | |
at new IncomingForm (/opt/haibu/apps/knack/Knack/package/node_modules/express/node_modules/connect/node_modules/formidable/lib/incoming_form.js:27:41) | |
at /opt/haibu/apps/knack/Knack/package/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:152:14 | |
at Object.bodyParser [as handle] (/opt/haibu/apps/knack/Knack/package/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:91:7) | |
at next (/opt/haibu/apps/knack/Knack/package/node_modules/express/node_modules/connect/lib/http.js:204:15) | |
at Object.handle (/opt/haibu/apps/knack/Knack/package/app.js:86:3) | |
at next (/opt/haibu/apps/knack/Knack/package/node_modules/express/node_modules/connect/lib/http.js:204:15) | |
at next (/opt/haibu/apps/knack/Knack/package/node_modules/express/node_modules/connect/lib/http.js:206:9) | |
at /opt/haibu/apps/knack/Knack/package/node_modules/express/node_modules/connect/lib/middleware/static.js:115:40 | |
at Object.static [as handle] (/opt/haibu/apps/knack/Knack/package/node_modules/express/node_modules/connect/lib/middleware/static.js:60:5) | |
at next (/opt/haibu/apps/knack/Knack/package/node_modules/express/node_modules/connect/lib/http.js:204:15) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have the same issue. Any solution?