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

The Archive Base Latest Questions

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

I would appreciate any feedback regarding what may be causing my issue, described below.

  • 0

I would appreciate any feedback regarding what may be causing my issue, described below.

I have an application that allows users to upload images. Everything works fine in development and used to work fine in production.

Recently, my newer images have all broken. I can upload new images, but when I check back a few hours later, the images are broken again. This started happening about a week ago, and images that I’ve had up in production from before then are still ok.

I am using Rails with Bootstrap and SimpleForm, and using Paperclip for the images. I am using Postgres in both devleopment and production, and am deploying to Heroku.

The only hint I have is in the “blank_profile_pic.png” image that I use as a default when users don’t have a profile picture uploaded.

User.all.each do |u|
  if u.profile_pic.file?
    image_tag(user.profile_pic)
  else
    image_tag("blank_profile_pic.png")
  end
end

For users that don’t have a profile_pic uploaded, a broken image appears if their profile was created in the last week, but the expected “blank_profile_pic.png” remains for people that created their account before the issues started surfacing a week ago. How can the same block of code return different results between recent and older users?

I really don’t know where to start with this, so would appreciate any feedback regarding what possible causes could be, and if there are any other files that I can show here.

Thanks very much for your help!

  • 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-11T23:24:38+00:00Added an answer on June 11, 2026 at 11:24 pm

    Heroku is a read only system. So you most definitely have to upload your images either to S3 or some other cloud provided.

    Your images might have been uploaded to /tmp in Heroku and then somehow it was cleared, hence the errors.

    Here are the docs: https://devcenter.heroku.com/articles/read-only-filesystem

    And configuring Paperclip with S3: https://github.com/thoughtbot/paperclip#storage

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

Sidebar

Related Questions

I would appreciate any help on this issue. Lets say I want to load
I'm relatively new to Java and would appreciate any help on this! I have
I would appreciate some feedback regarding the use of $(this)[0].defaultValue for determining whether a
I would really appreciate any jquery expert help as a method I've used previously,
I would really appreciate any help with the following problem: I need to be
I'm very new to C++ and would really appreciate any and all help. I
I'm trying to make a navigation for my website and would greatly appreciate any
I'm new to postgreSQL, so would really appreciate any pointers from the community. I
Would very much appreciate any help or hint on were to go next. I'm
Any help with this problem would be fantastic. I appreciate all contributions! Let us

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.