上传请求发出后,后端没有收到formData里填写的字段
const uploadTask = wx.uploadFile({
url: cosBucketMap[tmpFile.cate],
filePath: tmpFile.file,
name: 'file',
timeout,
formData: {
'key': tmpFile.new_name,
'success_action_status': 200,
'Signature': cos_config.Authorization,
'x-cos-security-token': cos_config.XCosSecurityToken,
'Content-Type': '',
},
success: function(res) {},
fail: function(res) {},
});
网友回复
微喵网络:
叫后端把所有接收到的参数打印出来
Mr.Zhao:
后台谁写的?