Skip to content

Can't set metadata when uplaoding file to S3 #976

Answered by rcoh
benjaminjellis asked this question in Q&A
Discussion options

You must be logged in to vote

I think you need to set content_type directly instead of setting it via Metadata: https://docs.rs/aws-sdk-s3/latest/aws_sdk_s3/operation/put_object/builders/struct.PutObjectFluentBuilder.html#method.content_type (same for content_disposition

Let me know if that works.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@benjaminjellis
Comment options

Answer selected by rcoh
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
2 participants