ruby on rails - PaperclipOpenURI::HTTPError (403 Forbidden) with Amazon S3 Storage -


i have images stored in s3 paperclip , error intermittenly showing up. had resolved few weeks ago upgrading ruby 2.1.5, it's now.

here's controller code:

  def download     extension = file.extname(@gallery_photo.image_file_name)     send_data open("#{@gallery_photo.image.expiring_url(10, :original)}").read, filename: "original_#{@gallery_photo.id}#{extension}", type: @gallery_photo.image_content_type   end 

here's error:

openuri::httperror (403 forbidden): 

rails 4 & ruby 2.1.5

i had extend expiring_url 10000.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -