title: upload the image on s3 using boto
body: <p>Here I have an image url. filename is image url</p>
  
  <pre><code>def upload(filename, content)
      conn = S3Connection(aws_access_key, aws_secret_key)
      b = Bucket(conn, bucket_name)
      k = Key(b)
      k.key = filename..split('/')[::-1][0]
      k.set_metadata("Content-Type", 'images/jpeg')
      k.set_contents_from_string(content)
      k.set_acl("public-read")
  </code></pre>
  
  <p>It upload things to the S3 but it shows the error: </p>
  
  <blockquote>
    <p><code>/tmp/t.jpeg</code> could not be opened, because the associated helper application does not exist. Change the association in your preferences.</p>
  </blockquote>