Closed alexandremcosta closed 10 years ago
Hi @alexandremcosta,
Do you have an example of what the full broken URL looks like with these settings, and what the full correct URL looks like?
Thanks!
Sorry brow, I already moved my bucket to USA, since I couldn't let my images broken. But I remember that the URL genereted was the same URL as if my bucket was in USA. http://s3.amazonaws.com//bucket-name/app/public/....
Since it was in Brazil, the URLs were broken. If I manually changed (using inspect) the url to the brazilian bucket url (s3-sa-east-1.amazonaws.com), I could access the image.
It's weird that I could upload images to the right URL. I just couldn't retrieve the right link to access the image, via the image helpers (small_image, etc...) (it kept being genereted as s3.amazonaws.com instead of s3-sa-east-1.amazonaws.com).
@alexandremcosta What version of Spree was this happening on?
I'm not sure. Right now, I'm using 2.1.4, but when this happened, it could be any 2-1-stable version before 2.1.4.
Well, if this isn't happening anymore in 2.1.4, I think we could close this issue, don't you think so?
On Ter, Mar 25, 2014 at 9:26 , Ryan Bigg notifications@github.com wrote:
@alexandremcosta What version of Spree was this happening on?
— Reply to this email directly or view it on GitHub.
@alexandremcosta This might very well still be an issue. Let's leave it open.
I'm closing this out as s3 support was removed from spree in favor of just setting up your rails application for s3. If people continue running into issues it seems to be more of a paperclip issue than spree, but can file a new issue with steps to reproduce.
Hi, Its in ruby 2.0.0, and rails 4.0.0. I have this on my spree (2-1-stable) initializer:
But images url are being constructed as: //s3.amazonaws.com/gobooks/app/...
The weird thing is that they are being uploaded to S3, as I can see on my amazon dashboard. They just can't be retrieved, since the image path is wrong.
PS.: when I change to a bucket on the default american location, and remove the attachment_url and s3_host_alias, it works.
Thanks in advance, Alexandre