Upstart Ubuntu Nodejs上传tmpdir错误

时间:2014-02-07 13:33:24

标签: node.js ubuntu file-upload upstart

我在Ubuntu上运行Upstart守护程序。 当接受要上载的文件时,守护程序正在运行nodejs应用程序。

尝试上传文件时出现以下错误:

TypeError: Object #<Object> has no method 'tmpDir'
    at new Form (/var/vikiWhauAPI/node_modules/express/node_modules/connect/node_modules/multiparty/index.js:53:44)
    at /var/vikiWhauAPI/node_modules/express/node_modules/connect/lib/middleware/multipart.js:100:18
    at limit (/var/vikiWhauAPI/node_modules/express/node_modules/connect/lib/middleware/limit.js:66:5)
    at multipart (/var/vikiWhauAPI/node_modules/express/node_modules/connect/lib/middleware/multipart.js:97:5)
    at /var/vikiWhauAPI/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:57:9
    at urlencoded (/var/vikiWhauAPI/node_modules/express/node_modules/connect/lib/middleware/urlencoded.js:52:72)
    at /var/vikiWhauAPI/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:55:7
    at json (/var/vikiWhauAPI/node_modules/express/node_modules/connect/lib/middleware/json.js:46:55)
    at Object.bodyParser [as handle] (/var/vikiWhauAPI/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:53:5)
    at next (/var/vikiWhauAPI/node_modules/express/node_modules/connect/lib/proto.js:190:15)

0 个答案:

没有答案