Unable to include Content-Type header #676
Replies: 1 comment 4 replies
-
Now that I look closer, |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to create a pre-signed url for uploading to S3. I can successfully upload an image file, but the type is not visible once it's in S3. When I download it from S3, the file appears to be corrupted. I believe this has to do with setting the
Content-Type
. Here's my code for generating the pre-signed URL:let signedURL = try await s3.signURL(url: url, httpMethod: method, headers: ["Content-Type": "image/jpeg"], expires: .minutes(15))
After generating, this is the only value in signed headers:
SignedHeaders=host
.Any idea what's going on?
Beta Was this translation helpful? Give feedback.
All reactions