Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8553313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:37:22+00:00 2026-06-11T14:37:22+00:00

upon adding an image to my prawn document and trying to pull that image

  • 0

upon adding an image to my prawn document and trying to pull that image from Amazon S3 storage I get the following error

ArgumentError (http://s3.amazonaws.com/briefbucket/photos/2/small/259823_1583726693707_1851950185_973122_7126850_n.jpg?1326839482 not found):

however i looked in my storage folder, the jpg is there. I noticed that the ending file name in prawn is “jpg?1326839482”?

any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:37:24+00:00Added an answer on June 11, 2026 at 2:37 pm

    Alright, I had the same issue today. Now:
    I’m using Amazon S3 and loading images uploaded by users. Solution as follows:

    if @user.avatar? #in case user didn't upload anything
      image open("#{ @user.avatar(:small).to_s.sub!(/\?.+\Z/, '') }")
    end
    

    Following

    .to_s.sub!(/\?.+\Z/, '') 
    

    is used the get rid of all stuff after “?”

    Before I have moved to amazon i was not using “open” which was causing the issue.

    Let me know if this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today I started to get this error upon adding new events to calendar: Fatal
I was trying to build my android application after adding an image, that i
Upon adding a second foreign key to the same table I get the following
I have a partial view that upon adding an item to the database needs
While trying to model my domain, I came across the following problem. Let's image
Upon submit I am trying to have quiz hide and have thanks be shown.
Upon reviewing a bunch of MVC style web applications, I'm noticing that it's common
Upon clicking on a link, I am bringing in some images from a JSON
I'm writing a custom TextBox that upon gaining focus changes its border style. As
From my understanding partial classes are a bit frowned upon by professional developers, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.