How do I copy an object with presigned URL?

前端 未结 2 413
花落未央
花落未央 2021-01-20 23:56

I\'m using a service that puts the data I need on S3 and gives me a list of presigned URLs to download (http://.s3.amazonaws.com/?AWSAccessKeyID=...&Signa

2条回答
  •  -上瘾入骨i
    2021-01-21 00:37

    You actually can do a copy with a presigned URL. To do this, you need to create a presigned PUT request that also includes a header like x-amz-copy-source: /sourceBucket/sourceObject in order to specify where you are copying from. In addition, if you want the copied object to have new metadata, you will also need to add the header x-amz-metadata-directive: REPLACE. See the REST API documentation for more details.

提交回复
热议问题