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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:29:37+00:00 2026-06-03T02:29:37+00:00

here was my situation. I was using paperclip to let user upload images. It

  • 0

here was my situation.

I was using paperclip to let user upload images. It did well and everything was okay. Then,I pushed it to heroku. For the momment, I can see all my images that was just upload by users. However, everytime make a new commit and push to heroku again, all of my previous images gone. It’s seems like dont have the file anymore,cant load it.

So,here what i thought:
Is it every time i pushed to the heroku server, the images file that was in local was uploaded to the heroku server?

I did research for my problem for it,and im not really understand what they actually said about heroku and i don’t know is it is the same problem with me.

Heroku has a read-only filesystem. That means Paperclip cannot save uploaded files to any place within Heroku.

If you would like to be able to upload files to an application hosted on Heroku, then you must either store the files as binary blobs within your database or you must use a separate service to store the files. If you are looking for a separate service, Paperclip has built-in support for integrating with Amazon S3.

I found out that Amazon S3 need credit card to register,if i do not have credit card,then i cannot use their services??

Any detail advices and explaination is appreciated .Thanks you

  • 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-03T02:29:39+00:00Added an answer on June 3, 2026 at 2:29 am

    Amazon is not a free device, you must to give your credit-card number to use it. However You pay only what you use but it is not expensive. For example for my websites, last month I paid $2.46 for 15Gb of storage and I paid $1.90 for 16Gb of data transfert.

    To use S3 with paperclip, you need to add gem 'aws-s3' to your Gemfile

    Next you need to add config/s3.yml your assets credentials, for example :

    production:
      access_key_id: AAAAAAAAAAAAAAAAAA
      secret_access_key: BBBBBBBBBBBBBBBBBBBBBBBBBBB
      bucket: assets.my-bucket
    

    Then I have a model which store my assets, for example :

    class Asset
      has_attached_file :asset, 
        :styles => {  :thumb => "60x60#", :large => "700x330#"},
        :storage => :s3,
        :s3_credentials => "#{Rails.root}/config/s3.yml",
        :path => "/images/:id/:style.:extension"
      validates_attachment_content_type :asset, :content_type => ['image/gif', 'image/jpeg', 'image/png', 'image/x-ms-bmp']
    end
    

    I hope it helps

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

Sidebar

Related Questions

I have a situation here i am taking input from user using scanf can
Here is my situation: I am using telerik with winform. I have a dataset
here is the situation. I'm retrieving a page using curl into a variable. So
Here is my situation. I have an app that is composed almost entirely using
First off, here is the situation. I'm using a guild hosting site that allows
Here's my situation: using PHP and MySQL as my backend, jQuery and jsTree for
OK, this is impossible, but I will try to explain the situation here. Let's
Here's the particular situation: I'm using a bookmarklet to call a .js that sends
Very strange situation here: I'm using L2S to populate a DataGridView. Code follows: private
Here is the situation. I am using SubSonic 3 and would like to specify

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.