【发布时间】:2015-09-18 19:47:33
【问题描述】:
我将图像上传到 Amazon S3,但它们没有显示。
我收到此错误:
<Error>
<Code>PermanentRedirect</Code>
<Message>
The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
</Message>
<Bucket>cb123</Bucket>
<Endpoint>cb123.s3.amazonaws.com</Endpoint>
<RequestId>870BC2E8570EF4E7</RequestId>
<HostId>
yuBkeXxftr7O9Ib0SasFTq8Hlvgc7hkhx9VMr+VwRL74qSDgJ9rqMgEU9noRIQe/
</HostId>
</Error>
这是我的设置:
has_attached_file :image, styles: { medium: "400x400#", small: "250x250#", :url =>':s3_domain_url', :path => '/:class/:attachment/:id_partition/:style/:filename' }
谢谢!
【问题讨论】:
-
您是否正确执行了所有这些步骤? devcenter.heroku.com/articles/paperclip-s3
标签: ruby-on-rails amazon-web-services heroku amazon-s3