Content-Type: multipart/form-data; boundary=Xm7QlFD92I4wyKj6T+3j-7UM
Content-Type: application/json
Content-Disposition: form-data; name="meta"
{"filename":"logo.png","sha256":"515828eec0c103968e543862f49fb23ed6748e09b93a817190f31f2c7d7861a5"}
--Xm7QlFD92I4wyKj6T+3j-7UM
Content-Type: image/png
Content-Disposition: form-data; filename="logo.png"; name="file"
PNG二进制内容
上面就是请求的内容,但总是报下面错误:
{"code":"PARAM_ERROR","detail":{"location":"body","value":""},"message":"输入源“/body/file”映射到字段“图片文件”必填性规则校验失败,此字段为必填项"}
不知道是啥原因?
看格式没啥大问题,是不是少了结束boundary --Xm7QlFD92I4wyKj6T+3j-7UM--标识符号?
请求是使用 Chunked 方式,可能与这个有关系吧?