wx.uploadFile一次性上传多图怎么弄啊?
[代码][代码][代码]wx.chooseImage({[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]var[代码] [代码]tempFilePaths = res.tempFilePaths//确定是一个多图的数组[代码][代码] [代码][代码]wx.uploadFile({[代码][代码] [代码][代码]url: [代码][代码]'http://192.168.11.168/kljjd/home/report/add/'[代码][代码],[代码][代码] [代码][代码]filePath: tempFilePaths,[代码][代码]//这里是多个不行, tempFilePaths[0]这样可以[代码][代码] [代码][代码]name: [代码][代码]'file[]'[代码][代码],[代码][代码]//我尝试这样写也不行[代码][代码] [代码][代码]formData:{[代码][代码] [代码][代码]'user'[代码][代码]: [代码][代码]'test'[代码][代码] [代码][代码]},[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res){[代码][代码] [代码][代码]util.debug(res);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码]})[代码] [代码]//控制台提示 WAService.js:1 uploadFile:fail parameter error: parameter.filePath should be String instead of Array;[代码]别告诉我要循环多次一张张的上传啊?