【发布时间】:2014-04-02 13:33:09
【问题描述】:
我可以将图像上传到 s3 存储桶。 然后我检索包含图像链接的 JSON 对象。 这是指向存储桶的 URL。
网址:“https://s3.amazonaws.com/bucket-name/uploads/recepie/image/21/2013-12-13_23.25.58.jpg”
当我按下它时,我得到一个错误
<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>
<RequestId>2227C463FE87702A</RequestId>
<Bucket>bucket-name</Bucket>
<HostId>
20obskM************FmRoYcMDnMlH
</HostId>
<Endpoint>bucket-name.s3.amazonaws.com</Endpoint>
</Error>
我正在使用带有载波和雾宝石的 RoR。
【问题讨论】:
-
存储桶名称应该在那里!
标签: ruby-on-rails-4 amazon-s3 amazon carrierwave fog