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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:34:03+00:00 2026-06-07T14:34:03+00:00

GETTING THIS ERROR WHEN UPLOADING A FILE : LoadError (no such file to load

  • 0

GETTING THIS ERROR WHEN UPLOADING A FILE :
LoadError (no such file to load — aws-sdk (You may need to install the aws-sdk gem)):
app/controllers/uploaded_files_controller.rb:19:in `create’

I am using Mongo and Paperclip. I can upload files fine without using s3. However, our production server is on Heroku and so I have to use Amazon to store the files.

I’ve read other Stack Overflow posts about this but none address my specific issue.

  1. I have restarted my server several times. that’s not it.
  2. I am indeed requiring the Amazon gem in my Gemfile
  3. I have done a bundle install after putting the amazon gem in ( I know its obvious, but still I had to state this )

  4. I am NOT using ImageMagick. These uploads are simple text file uploads.

  5. I know that my Amazon bucket name and auth stuff is correct because I use this app to connect to other Amazon resources in a different capacity.

Can anyone help with this ? Here is my code:

class UploadedFile
  include Mongoid::Document
  include Mongoid::Paperclip

  require "aws/s3"

  has_mongoid_attached_file :file,
    :storage        => :s3,
    :bucket_name    => 'my-uploads',
    :path           => ':attachment/:id/:style.:extension',
    :s3_credentials => File.join(Rails.root, 'config', 'amazon_s3.yml')

end
  • 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-07T14:34:07+00:00Added an answer on June 7, 2026 at 2:34 pm

    OK, I’ve found the answer: The gem needs to be updated.

    Paperclip now requires Amazon SDK gem instead of the s3 gem.

    gem 'aws-s3', :require => "aws/s3"
    

    should be instead

    gem 'aws-sdk',   :require => "aws-sdk"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm Getting this error in my development log while uploadify is uploading the file
when upload the same file for the multiple times i am getting this error......
I'm getting the following error when uploading a file to a Sharepoint 2010 list,
I'm getting this error when uploading an image on my hosting. Request for the
When uploading files with a silly file size I'm getting the following PHP error:
We are getting this error after upgrading to NHibernate 2.1. [QueryException: Cannot simultaneously fetch
Getting this error: 2009-09-03 12:44:02.307 xcodebuild[307:10b] warning: compiler 'com.apple.compilers.llvm.clang.1_0.analyzer' is based on missing compiler
Getting this error with jquery & jquery.form. Site has been live for awhile..upgraded to
Getting this error when try to add an item to my repositories/context: Collection has
Am getting this error message and matched my brackets and couldn't find anything wrong.

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.