看日志请求content-type
不是 multipart/form-data 前端
wx.uploadFile没有设置content-type
正常content-type:
有问题的content-type:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF XWEB/1000/Tencent Security Team
服务端报错:400 Bad Request: The browser (or proxy) sent a request that this server could not understand.
appid:wxca281c3ee41d9802
wx.uploadFile({ url, filePath, header: { 'content-type': 'multipart/form-data' }, })