【发布时间】:2016-02-17 22:07:57
【问题描述】:
我正在尝试使用 s3,但遇到了权限问题(我认为)。
输出:
AWS::S3::PermanentRedirect in CkeditorController#create
The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
我正在使用 ckeditor。我的 Ckeditor::Picture 类包括:
has_attached_file :data,
:s3_credentials => "#{Rails.root}/config/s3.yml",
:storage => :s3,
:path => ":attachment/:id/:style.:extension"
validates_attachment_size :data, :less_than=>2.megabytes
在 s3.yml 中,我得到了:
access_key_id: "key"
secret_access_key: "key"
bucket: "name"
AWS_CALLING_FORMAT: SUBDOMAIN
我错过了什么?提前谢谢!
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3 amazon-s3 ckeditor