https://developers.weixin.qq.com/miniprogram/dev/api/network/upload/wx.uploadFile.html
小程序提交新版本通过审核之后,图片上传wx.uploadFile有时成功,有时失败
wx.uploadFile的回调object.success返回
res------ {statusCode: 500, data: "<!DOCTYPE html>↵<html>↵<head>↵<title>Error</title>↵</head>↵<body>↵<h1>500</h1>↵</body>↵</html>↵", header: {…}, cookies: Array(0), errMsg: "uploadFile:ok"}cookies: []data: "<!DOCTYPE html>↵<html>↵<head>↵<title>Error</title>↵</head>↵<body>↵<h1>500</h1>↵</body>↵</html>↵"errMsg: "uploadFile:ok"header: Connection: "close"Content-Length: "95"Content-Type: "text/html; charset=utf-8"Date: "Thu, 30 Jun 2022 09:45:31 GMT"ETag: ""5e045fe4-5f""Server: "nginx"X-Cache: "213"__proto__: ObjectstatusCode: 500__proto__: Object
成功数据如下
失败的数据,图片上传到27%直接被阻止了,errMsg还是uploadFile:ok
域名都已配置,
同求 解决了吗
这肯定是后端问题,找后端就完事了
是不是图片比较大,请求超时了
500报错 找后端 跟域名配置没关系