新增临时素材 api 传了 type 依然返回 invalid file type?
调用新增临时素材接口
[新增临时素材文档](https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html)
请求公众号 appid:wx873dbaf75000ac21
发送给微信 request 日志:
[2020-09-12T11:43:40.371956+08:00] EasyWeChat.DEBUG: >>>>>>>>
POST /cgi-bin/media/upload?access_token=37_h8Xv_UHJCXAJssssssssssssssssDbXKyiBU55itslo_xBwtBxJOnknCsxxxxxxxxxE_Y8aPIMjYcdfnnbdQBvViFBhmfK3lmK455nwqFx5TCOi07oEFRF3ftfNApYtVGEfAGAALJ&type=image HTTP/1.1
Host: api.weixin.qq.com
Transfer-Encoding: chunked
Expect: 100-Continue
User-Agent: GuzzleHttp/6.5.3 curl/7.64.0 PHP/7.4.4
Content-Type: multipart/form-data; boundary=6195f8d68ae6bb62fcad807e3eee53863d6afce8
--6195f8d68ae6bb62fcad807e3eee53863d6afce8
Content-Disposition: form-data; name="media"; filename="acca2e04df8afce3e2a8cfe0994cdf70.jpg"
Content-Type: image/jpeg
�PNG
���
微信服务器 response 日志:
<<<<<<<<
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: text/plain
Date: Sat, 12 Sep 2020 03:55:08 GMT
Content-Length: 101
{"errcode":40005,"errmsg":"invalid file type hint: [my2sOa09080020] rid: 5f5c469c-683a1d13-02d51118"}
--------
NULL
已确认 access_token 和文件是 ok 的,用微信的接口调试工具请求如下:
@微信官方,请问是什么原因?