title: S3 set mime type on upload
body: <p>I've looked at a number of questions on SO, and tried the solution below. Unfortunately it's not working.</p>
  
  <p>I'm trying to upload images to S3 using putObject and the AWS PHP SDK, along with a laravel implementation of the class and the intervention image class.</p>
  
  <p>So I have:</p>
  
  <pre><code>$s3-&gt;putObject(array(
                  'Bucket' =&gt; 'xxxx', 
                  'Key' =&gt; 'xxxx',
                  'Body' =&gt; $img-&gt;encode(null, $output['quality']),
                  'ACL' =&gt; 'public-read',
                  array('params' =&gt; array('ContentType' =&gt; $img-&gt;mime()))
              ));
  </code></pre>
  
  <p>The problem I'm having is that content type is always set to:</p>
  
  <pre><code>binary/octet-stream
  </code></pre>
  
  <p>How can I set to to the mime type of my uploaded image?</p>