amazon s3 - The file size is zero when using the S3 CopyObject API - Stack Overflow

admin2025-04-16  6

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.com/<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.

转载请注明原文地址:http://anycun.com/QandA/1744779643a87515.html