title: Can't set Content-type to Google Storage with the Google PHP Client
body: <p>I'm using <a href="https://code.google.com/p/google-api-php-client/" rel="nofollow">google-api-php-client</a> </p>
  
  <p>Here's the bit where I upload a .jpg image.</p>
  
  <pre><code>$postbody = array("data" =&gt; $imgData);
  $gso = new Google_StorageObject();
  
  $gso-&gt;setName($imageName);
  $contentType = 'image/jpg';
  $gso-&gt;setContentType($contentType);
  $resp = $objects-&gt;insert('bucket-name', $gso, $postbody);
  </code></pre>
  
  <p>By inspecting <code>$gso</code> ContentType is being added but in the cloud console is added with the default <code>application/octet-stream</code> type.</p>
  
  <p>Is there another way to set the content type?</p>