upload() {
wx.chooseImage({
success (res) {
const tempFilePaths = res.tempFilePaths
wx.uploadFile({
url: 'https://xxxx/api/uploadFile', //仅为示例,非真实的接口地址
filePath: tempFilePaths[0],
name: 'file',
header: {
token: 'xxxx'
},
formData: {
'pl': 'ac'
},
success (res){
const data = res.data
//do something
}
})
}
})
}
之前一直可以,前两天客户反馈突然不行了