【问题标题】:Cloudinary image not displaying Invalid URLCloudinary 图像不显示无效的 URL
【发布时间】:2018-02-08 23:10:30
【问题描述】:

我使用 cloudinary 存储图像和 Imagemagick 上传。图片上传成功,我可以在我的 cloudinary 仪表板上看到它,但它没有显示在页面上。它给出了以下错误。这是一个heroku应用程序

网址无效 http://dhwgznjct-res-3.cloudinary.com/image/upload/c_fit,h_48,w_48/sktx7wflb9ewtg6zypu4.png

请求的 URL“http://%5bNo%20Host%5d/image/upload/c_fit,h_240,w_240/sktx7wflb9ewtg6zypu4.png”无效。 参考#9.9d086a7c.1504157220.4809d0a

【问题讨论】:

    标签: heroku cloudinary


    【解决方案1】:

    该 URL 配置为私有 CDN(即cloudname-res.cloudinary.com),该 URL 在原始设置中有效 - http://res.cloudinary.com/dhwgznjct/image/upload/c_fit,h_48,w_48/sktx7wflb9ewtg6zypu4.png

    检查您的环境设置并删除private_cdn:true(或设置为false)。

    【讨论】:

      猜你喜欢
      • 2021-02-20
      • 2015-12-28
      • 2016-07-12
      • 2018-08-15
      • 2012-10-08
      • 2021-07-06
      • 2019-01-10
      • 2018-07-29
      • 2014-11-29
      相关资源
      最近更新 更多