wx.uploadFile 报错
调用uploadFile报错,求各位大神看下什么原因。。[代码]wx.chooseImage({[代码][代码] [代码][代码]success: function (res) {[代码][代码] [代码][代码]var tempFilePaths = res.tempFilePaths[代码][代码] [代码][代码]wx.uploadFile({[代码][代码] [代码][代码]url: 'https://example.weixin.qq.com/upload', //仅为示例,非真实的接口地址[代码][代码] [代码][代码]filePath: tempFilePaths[0],[代码][代码] [代码][代码]name: encodeURI('file'),[代码][代码] [代码][代码]formData: {[代码] [代码] [代码][代码]},[代码][代码] [代码][代码]success: function (res) {[代码][代码] [代码][代码]var data = res.data[代码][代码] [代码][代码]//do something[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码] [图片]