Skip to content

I can't seem to access the Headers from the PutObjectResponse #2125

Answered by Julius-ERCM
Julius-ERCM asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like I was able to find a way around this issue by calling this once the PutObjectAsync finishes

var metadataResponse = await client.GetObjectMetadataAsync(new GetObjectMetadataRequest
               {
                   Key = objectName,
                   BucketName = bucketName
               });

return metadataResponse.Metadata["x-amz-meta-cid"];

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Julius-ERCM
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant