title: Amazon S3 upload Image from Rails
body: <p>I'm uploading the image using aws-s3 gem, it uploads perfectly and give me the url. Image is in PNG format but when I hit the public url in my browser, it starts downloading, but I don't want to download it, I want to see the image in browser.</p>
  
  <p>Please tell me if you know which parameter in the following request should be added for this or what change is required to achieve this? </p>
  
  <pre><code>AWS::S3::S3Object.store(base_name,open(local_file),bucket,:content_type =&gt; mime_type,:access =&gt; :public_read,:authenticated =&gt; false)
  
  s3_url = AWS::S3::S3Object.url_for(params[:name],bucket)[/[^?]+/]
  </code></pre>