title: amazon s3 - image downloading instead of displaying in browser
body: <p>This is driving me mad. I am uploading images to S3 using the php SDK. Whenever I browse to the image URL, the browser downloads the image opposed to displaying it.</p>
  
  <p>I think its something to do with content type.</p>
  
  <pre><code>        // Prepare to upload the file to S3 bucket.
          $s3-&gt;create_object($bucket, $file_name, array(
                  'contentType' =&gt; 'binary/octet-stream',
                  'acl' =&gt; AmazonS3::ACL_PUBLIC
          ));
  </code></pre>
  
  <p>Can you help?</p>
  
  <p>thanks</p>