问题描述
请求中encoding-type
参数指定的编码方法无效。
问题原因
请求参数或请求头中的encoding-type
参数不合法, 参数仅支持url、 url2以及base64。
问题示例
https://junchengtest.oss-cn-chengdu.aliyuncs.com/5e268a36-1805e55ecba.mp4?uploads
Authorization:OSS LTAI5tKEDK5QxcL9g7uK****:SLw8cfY3lD8DYzRuFndkgF****=
Date:Fri, 10 Feb 2023 03:52:53 GMT
encoding-type:urlencode
错误响应示例:
<Error>
<Code>InvalidArgument</Code>
<Message>Invalid Encoding Method specified in Request</Message>
<RequestId>63E5C184D9A9023037C50687</RequestId>
<HostId>junchengtest.oss-cn-chengdu.aliyuncs.com</HostId>
<ArgumentName>encoding-type</ArgumentName>
<ArgumentValue>urlencode</ArgumentValue>
</Error>
解决方案
分片上传时,encoding-type
参数不能使用其他的编码方法,只能使用支持的url、url2以及base64。
相关文档
该文章对您有帮助吗?