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).

asked 2 years ago402 views
1 Answer
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.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions