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).
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.
您未登录。 登录 发布回答。
一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。