我正在使用 ajax Valum 的 qq 上传器 (https://github.com/valums/file-uploader) 将图片上传到 Express.js (3.0.0) 服务器。它适用于除 Safari 之外的所有流行浏览器。出现以下错误:
TypeError:无法读取提升时未定义的属性“长度”(/home/andrew/projects/dreamshare-git/src/main/node_modules/express/node_modules/connect/node_modules/qs/lib/querystring.js:15:18)在解析 (/home/andrew/projects/dreamshare-git/src/main/node_modules/express/node_modules/connect/node_modules/qs/lib/querystring.js:53:58) 在解析 (/home/andrew/projects/ dreamshare-git/src/main/node_modules/express/node_modules/connect/node_modules/qs/lib/querystring.js:50:7)在合并(/home/andrew/projects/dreamshare-git/src/main/node_modules/ express/node_modules/connect/node_modules/qs/lib/querystring.js:68:5) 在 String.split.reduce.base (/home/andrew/projects/dreamshare-git/src/main/node_modules/express/node_modules/ connect/node_modules/qs/lib/querystring.js:111:14) 在数组。在 Object.exports.parse 的 parseString (/home/andrew/projects/dreamshare-git/src/main/node_modules/express/node_modules/connect/node_modules/qs/lib/querystring.js:101:6) 处减少(本机) (/home/andrew/projects/dreamshare-git/src/main/node_modules/express/node_modules/connect/node_modules/qs/lib/querystring.js:127:7) 在 IncomingMessage.module.exports (/home/andrew/ projects/dreamshare-git/src/main/node_modules/express/node_modules/connect/lib/middleware/urlencoded.js:66:18) 在 IncomingMessage.EventEmitter.emit (events.js:90:17)在 IncomingMessage.EventEmitter.emit (events.js:90: 17)在 IncomingMessage.EventEmitter.emit (events.js:90: 17)
你能建议任何解决方案吗?谢谢!