Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Expiring url doesnt seem to work #1191

Closed
menan opened this Issue Mar 11, 2013 · 2 comments

Comments

Projects
None yet
2 participants

menan commented Mar 11, 2013

I have my s3_permissions set to 'authenticated-read' for the attachment and when I call the expiring_url method on the object from the server it returns a proper authenticated url, But the link returns s3 access denied page. But when I call the same expiring_url method from the console, the link works fine. Why is this happening?

Member

jyurek commented Apr 5, 2013

Can you give me examples of the links you're trying? It could be that the link is escaped somehow in one and not the other, or something similar in the way you're trying to load the urls.

menan commented Apr 7, 2013

Guess what, You were right. The characters in the link were escaped. I just called the .html_safe on the expiring url function and it works perfectly now. Thanks for your help.

@menan menan closed this Apr 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment