My app uploads an image to S3 and returns the URL of that image. However, it returns a URL like http://ift.tt/1IVHbHu
How can I get it to return the simple URL that doesn't require access key and signature in the URL? Also, the links expire pretty quickly.
Here is my code:
bucket.objects[filename].write(result.to_blob, {:acl=>:public_read})
url = bucket.objects[filename].url_for(:read, :secure => false).to_s
Aucun commentaire:
Enregistrer un commentaire