You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I upload files without Metadata( like ContentType) in aws java sdk 1.x.x, files which are uploaded on s3 get correct ContentType value such as .html => ContentType = text/html or .js => ContentType = application/x-javascript, but when we upload files without Metadata in aws java sdk 2, all files which are uploaded on s3 get ContentType = binary/octet-stream.
When I set the ContentType value in aws2 as below, all files are getting same ContentType value as normally.
Is it possible like in sdk 1.x.x to set ContentType value from file head automatically
Hi @BarisGece, could you double check you are using 2.0.0-preview-8? The changes should be pushed and released in 2.0.0-preview-8, as you can see in unit test and in commit.
I also tried a quick test and the contentType looks correct.
When I upload files without Metadata( like ContentType) in aws java sdk 1.x.x, files which are uploaded on s3 get correct ContentType value such as .html => ContentType = text/html or .js => ContentType = application/x-javascript, but when we upload files without Metadata in aws java sdk 2, all files which are uploaded on s3 get ContentType = binary/octet-stream.
When I set the ContentType value in aws2 as below, all files are getting same ContentType value as normally.
Is it possible like in sdk 1.x.x to set ContentType value from file head automatically
Sample Code
AWS SDK 1.x.x
without ContentType - AWS SDK 2.0
with ContentType - AWS SDK 2.0
Your Environment
The text was updated successfully, but these errors were encountered: