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 8862945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:51:10+00:00 2026-06-14T15:51:10+00:00

My users store an external image URL (http://their-site.com/photo.jpg) in – for example – @user.external_image

  • 0

My users store an external image URL (http://their-site.com/photo.jpg) in – for example – @user.external_image. I’m trying to write a method for the User class that takes that URL and saves it to S3 using Carrierwave.

So on the above @user, I’d like to run @user.save_to_s3 and have it “upload” the image to S3. I’ve tried to do this by mounting an uploader on :s3_image to the User class and writing the following method:

def save_to_s3
  self.remote_s3_image_url = self.external_image
  save
end

But I get the following error when I call that method on a @user record:

“ArgumentError: Missing required arguments: aws_access_key_id, aws_secret_access_key”

So it’s getting close, but it’s not retrieving my S3 credentials – even though they’re set. I’d appreciate any thoughts or suggestions.

  • 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-14T15:51:11+00:00Added an answer on June 14, 2026 at 3:51 pm

    The problem turned out to be unrelated to Carrierwave or Fog. It was an oversight on my part that the ENV variables which I’d set (in my app’s .env file) were not being loaded into the bootstrapped Rails environment (e.g. rails console). Once I added http://github.com/bkeepers/dotenv (which solves precisely that issue) to my bundle, the save_to_s3 method worked.

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

Sidebar

Related Questions

I want my web's register users to store their location (latitude & longitude) from
The sites of my users collect referrer data about their users and store it
I have a website form that collects url of users to store in a
I'm building an auction website (in Python/Django). Users can provide URL's to their product
I have a table in which users store scores and other information about said
I'm building ASP.NET MVC2 website that lets users store and analyze data about goods
I have an application where users can store items. Now each type of account
My new MVC3 web application allows users to store some information about themselves, and
I have an ecommerce gift store where users can fill out a gift-card for
I have a list of users in local store that I need to update

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.