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

  • Home
  • SEARCH
  • 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 8915065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:53:07+00:00 2026-06-15T04:53:07+00:00

SEE UPDATE BELOW! I am having problems after I upload an image file to

  • 0

SEE UPDATE BELOW!

I am having problems after I upload an image file to Amazon S3 and then try to save the file.

I use direct_fog_url(with_path: true) to get the the url of the image uploaded. I then get the following error:

ActiveRecord::RecordInvalid Validation failed: Image could not download file

I saw these two possible solutions:

https://github.com/jnicklas/carrierwave/issues/700

http://www.github.com/jnicklas/carrierwave/issues/888

But neither one seems to work.

Im using the older deleted command: overwriting method process_uri (enter link description here):

def process_uri(uri) 
 URI.parse(URI.escape(URI.unescape(uri)).gsub("[", "%5B").gsub("]", "%5D").gsub("+", "%2B"))
end

In my application I am using the following Gems:

gem ‘fog’

gem ‘carrierwave’

gem ‘carrierwave_direct’

gem ‘rmagick’

Thanks!

UPDATE: After implementing @Alex’s answer below we resolved that problem but now when we do the upload we get the following error:

Excon::Errors::MovedPermanently

PermanentRedirect
The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.

  • 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-15T04:53:08+00:00Added an answer on June 15, 2026 at 4:53 am

    For your Excon::Errors::MovedPermanently issue, make sure that you have the right data center region configured in your carrierwave.rb file. For example, if you’re hosted on us-west, your region needs to be set to us-west.

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

Sidebar

Related Questions

UPDATED See post #3 below. There is a need to upload a file to
I'm having problems using Hibernate and SQL Server 2008. When I try to save
I am having problems with this page [see code below], and its cross browser
Please see update far below for a briefer description I'm having a problem with
UPDATE see below I am not sure how to populate a list or vector
UPDATE (spoiler): This question is answered (see David Carlisle answere below) and it looks
OK, I thought I would try one last update and see if it gets
I am having problems with the code below. Basically it's 2 parts in the
I'm having problems with const char array being stored to a struct, then when
I'm having some problems with the code below. What I'm trying to do is

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.