小程序上传图片出现Provisional headers are shown
wx.uploadFile({
url: app.globalData.requestUrl + ‘/cloud-storekeeper/sk/uploadFile?access_token=’ + access_token ,
filePath: tempFilePaths[0],
method: “Post”,
name: ‘file’,
formData: {
},
header: {
‘content-type’: ‘application/json’
},
success: function (res) {
}
});
请求都没发出去,没有任何返回
3 回复