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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:49:15+00:00 2026-06-03T06:49:15+00:00

How do I make the single image uploader do different actions depending on the

  • 0

How do I make the single image uploader do different actions depending on the model it is creating the image for?

I have one image uploader, and I want to upload images for Users and for Posts. For the user, I want the original image & thumbnail (70×70). For the Posts, I want the original image and featured thumbnail (260×180). I could just make 3 versions for every image and just call the desired one, but that’s probably really bad since it would clog my storage database.

I looked at:
Carrierwave; multiple uploaders or just one?
and it looks like a possible solution is to create subclasses. However, I wasn’t too sure how I would do this – I tried doing it as the answer suggested but with no success.

  • 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-03T06:49:16+00:00Added an answer on June 3, 2026 at 6:49 am

    You should use separate carrierwave uploaders since the behaviors are different. There’s no need of subclass here unless you want to share some codes between these two uploaders.

    Just add another uploader which should be the same of your existing one besides the version part.

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

Sidebar

Related Questions

I'm loading layers of images to make a single image. I'm currently stacking them
i have implemented a code that fetch single image from 1000+ images. The image
I need to make it easy for users to attach a single image to
Okay, I have a question guys. I want to remote upload (copy an image
I want to join multiple canvases to make a single image. So is there
I want to make video frame with different format like .doc,.pdf, and image. is
I want to make a carousel which every single slide is going to have
A single Rails command can make lots of changes in an app - creating
I want to make many inserts in a single SQL statement, pretty much like
I've got a bunch of tiles that make up a single image, that are

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.