【问题标题】:Bad bucket URL in CKeditorCKeditor 中的错误存储桶 URL
【发布时间】:2016-02-15 05:22:23
【问题描述】:

我正在使用 CKeditor 和 Paperclip。

上传文件正常,但 CKeditor 中的 URL 不是好的。

其实Ckeditor使用的是“http://s3.amazonaws.com/mybucketname/ckeditor_assets/pictures/12/content_image.jpg

但是好的文件路径是“http://mybucketname.s3.amazonaws.com/ckeditor_assets/pictures/12/content_image.jpg

我该如何解决这个问题?

【问题讨论】:

    标签: ruby-on-rails amazon-web-services amazon-s3 ckeditor paperclip


    【解决方案1】:

    我解决了我的问题::s3_host_name => 's3-eu-west-1.amazonaws.com'

    【讨论】:

    • 很好,请问你把那个放在哪里了?
    • 我在 ckeditor 资产模型上使用 url: ":s3_domain_url" 解决了
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-07-16
    • 2020-11-05
    • 2018-09-29
    • 2015-03-14
    • 1970-01-01
    • 1970-01-01
    • 2018-12-22
    相关资源
    最近更新 更多