Anu Sebastian
2014-Jul-10 12:03 UTC
Signature/Expires/Access Key ID appearing in URL Params aws paperclip
s3 url that expires after 1 hr
here is code
file_name_in_s3 = "topic_alerts/"+report_name
s3_config = YAML.load_file("#{Rails.root}/config/s3.yml")
s3 = AWS::S3.new(:access_key_id =>
s3_config['development']['access_key_id'],:secret_access_key
=>
s3_config['development']['secret_access_key'])
bucket = s3.buckets[s3_config['development']['bucket']]
object = bucket.objects[file_name_in_s3]
s3_obj_url = object.url_for(:read,:authenticated =>
false,:response_content_disposition => "attachment")
url generated is signed url and expires in one hr.. plshelp me to find a
solutin to genrate public url with out parm values signature and expires
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/3bbc3a0e74fd58e63668f48d6055064f%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.