问题模块 | 框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|---|
API和组件 | 小程序 | Bug | wx.uploadFile | 工具 | 1.02.1808101 | 2.2.5 |
up: function (){ wx.chooseImage({ success: function (res) { var tempFilePaths = res.tempFilePaths wx.uploadFile({ url: app.globalData.PATH + '/class/up.php' , //仅为示例,非真实的接口地址 filePath: tempFilePaths[0], name: 'file' , formData: { 'user' : 'test' }, success: function (res) { var data = res.data //do something } }) } }) }, |
网友回复
传输助手:
代码片段:wechatide://minicode/MqLy7amo7c28
那个很帅的小白:
你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。