admin管理员组文章数量:1416333
I want to use the S3 CopyObject API with Postman. Although the response status is 200, the content-length is 0, and the destination file exists but the file size is zero.
Url: https://<bucket>.s3.<region>.amazonaws/<destination-object>.jpg?X-Amz-Copy-Source=<source-folder>/<source-object>.jpg
Other parameter uses Postman authorization and request content-length is 0.
I want to use the S3 CopyObject API with Postman. Although the response status is 200, the content-length is 0, and the destination file exists but the file size is zero.
Url: https://<bucket>.s3.<region>.amazonaws/<destination-object>.jpg?X-Amz-Copy-Source=<source-folder>/<source-object>.jpg
Other parameter uses Postman authorization and request content-length is 0.
Share Improve this question edited Feb 3 at 4:08 Doggu asked Feb 3 at 4:02 DogguDoggu 1001 gold badge2 silver badges10 bronze badges1 Answer
Reset to default 0Sorry, I made a mistake. I thought X-Amz-Copy-Source
was a query parameter, but it is a header. Changing the query parameter to a header worked for me.
本文标签: amazon s3The file size is zero when using the S3 CopyObject APIStack Overflow
版权声明:本文标题:amazon s3 - The file size is zero when using the S3 CopyObject API - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745250101a2649771.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论