使用wx.uploadfile这个函数一直会显示错误400,错误信息bad request后端接不到消息
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<per>ERR_BAD_REQUEST:
POST /index HTTP/1.1
Content-Type: multipart/form-data; boundary=--------------------------892716975123147825149432
Referer: https://servicewechat.com/wx4089d18935b7eb0a/devtools/page-frame.html
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.3 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1 wechatdevtools/1.06.2210141 MicroMessenger/8.0.5 Language/zh_CN webview/
host: 6491m26d93.yicp.fun
content-length: 801932
Connection: keep-alive
</per></body></html>
上传的服务端程序有错误。
400是地址有错吧?用post试一下提交地址……