BUG: S3 upload response data is different per file size.

0

Uploading a 1MB file results in a response data like so:

Bucket: "..."
ETag: "..."
Key: "..."
Location: "..."
SSEKMSKeyId: "..."
ServerSideEncryption: "..."
key: "..."

On the other hand, uploading a file 5MB or larger results in a response data like this:

Bucket: "..."
ETag: "..."
Key: "..."
Location: "..."
SSEKMSKeyId: "..."
ServerSideEncryption: "..."

The difference being a larger file is missing the property "key" (lowercase k).

已提问 2 年前407 查看次数
1 回答
0

How are you doing the upload? Using the CLI "aws s3 cp" for example, 5MB is the threshold where it automatically switches to multipart upload. That uses different API calls which would explain a different response.

已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则