调用wx.createCameraContext().takePhoto
后获取到了图片地址。
wx.uploadFile 上传文件报fail localId is empty
参数如下
url: 'http://xxx',
filePath: this.data.filePath ,
name: 'file',
header:{
'content-type': 'application/json'
}
网友回复
undefined:
调用wx.createCameraContext().takePhoto
后获取到了图片地址。
wx.uploadFile 上传文件报fail localId is empty
参数如下
url: 'http://xxx',
filePath: this.data.filePath ,
name: 'file',
header:{
'content-type': 'application/json'
}