上传图片到开发者后台服务器调用wx.uploadFile()返回405,参数配置如下
wx.uploadFile({
url: data.url,
filePath: data.path[i],
name: 'file',
...})
走了success回调,返回内容如下
"{"timestamp":1648090423113,"status":405,"error":"Method Not Allowed","exception":"org.springframework.web.HttpRequestMethodNotSupportedException","message":"Request method 'POST' not supported","path":"/xxx/portal/image/upload/anon"}"
已经解决了,还是要仔细检查下url