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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

Sorry, 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