Errno::ENOENT (No such file or directory) in amazon-s3

后端 未结 1 1599
抹茶落季
抹茶落季 2021-01-13 02:44

I have application which is deployed to heroku using amazon s3 posting images to buckets.This works perfectly fine. But when fetching same image it gives error:



        
相关标签:
1条回答
  • 2021-01-13 03:05

    Including given code in config/initializers/paper_clip.rb resolved my problem.

        Paperclip::Attachment.default_options.merge!(
            :url => ':s3_domain_url',
            :path => 'app/public/:class/:attachment/:id_partition/:style/:filename'
        )
    
    0 讨论(0)
提交回复
热议问题