software.amazon.awssdk.services.s3.S3AsyncClient#putObject does not detect Content-Type
If the synchronous S3 client is used to put an object into a bucket, the Content-Type metadata property is set based an auto-detection of mime type (software.amazon.awssdk.core.sync.RequestBody#fromFile(java.nio.file.Path)).
If the asynchronous client is used to put the same object, it's Content-Type is always set to binary/octet-stream, no auto-detection is done.
- AWS Java SDK version used: 2.13.23
Can you provide a reproducible code sample?
No, sorry. All that's required though is a call to software.amazon.awssdk.services.s3.S3AsyncClient#putObject
@adrian-skybaker I finally got some time to repro this and I can confirm I see the issue, thank you for reporting it.
@debora-ito do you any updates on this issue?
@SergeyBrenko no updates at this time.
A new support to fix this has been added in #2239.
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.