title: (nodeJS) Content-Type for S3 object: manually set to 'image/jpeg' but in S3 console comes up as 'application/octet'
body: <p>I have a JPEG buffer which uploads and downloads successfully from S3. However, I'm trying to send it over the Messenger API, and when it's accessed programmatically Messenger throws errors because according to the S3 console, the actual <code>Content-Type</code> of the image is <code>application/octet-stream</code>. </p>
  
  <p>My manually entered metadata appears under <code>x-amz-meta-content-type</code>. According to the AWS documentation, this is the default behavior. How might I override it to get <code>image/jpeg</code> under <code>Content-Type</code>?</p>
  
  <p>My code:</p>
  
  <pre><code>var s3 = new AWS.S3();
  var params = {
    Body: buffer,
    Bucket: &lt;bucket&gt;,
    Key: &lt;key&gt;,
    Metadata: {
      'Content-Type': 'image/jpeg'
    }
  };
  s3.putObject(params, function(err, data) {
    if (err) console.log(err, err.stack); // an error occurred
    else  {
      console.log(data);
    }
  })
  </code></pre>