I am migrating my code from AWS PHP SDK1 to SDK2 (https://github.com/aws/aws-sdk-php).
I have an image uploader. In my previous version, I would specify the Content-
At the end, this set of options worked:
array('params' => array('ContentType' => $mime))
No need for Metadata
Well, using AWS\S3\S3Client::putObject() directly would definitely give you the control you need.
File extensions need to be lowercase for the automatic detection to work.
You can find the list of supported mime types in Guzzle\Http\Mimetypes.