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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:16:49+00:00 2026-06-09T18:16:49+00:00

I want to do something what I thought will be a simple task: Have

  • 0

I want to do something what I thought will be a simple task:

  • Have a form with these controls:
    • File upload for one file
    • Checkbox if this file should be extracted
    • Text input where I would specify which file should I link to (required only if the checkbox is checked) – index_file
  • After submitting form:
    • If the checkbox isn’t checked, upload the file via CarrierWave to S3 to the specified store_dir
    • If the checkbox is checked, extract all files from the archive (I expect only ZIP archives; I need to keep the directory structure), upload extracted files to the specified store_dir and set the index_file in database (I don’t need to save to database anything about other extracted files)

As I have found, it isn’t an easy task because of Heroku limitations. These files will have a large size (hundreds of MiBs or a few GiBs), so I don’t want to redownload this file from S3 if possible.

I think that using Delayed Job or Resque might work, but I’m not exactly sure how to do it and what is the best solution of my problem.

Does anyone have any idea how to solve it with using the lowest resources as possible? I can change CarrierWave to another uploader (Paperclip etc.) and my hosting provider too if it isn’t possible on Heroku.

I was also thinking about using CloudFlare, would this still work without problems?

Thank you for answers.

  • 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-09T18:16:51+00:00Added an answer on June 9, 2026 at 6:16 pm

    Based on this heroku support email, it would seem that the /tmp directory is many gigs in size. You just need to clean up after yourself so Heroku as a platform is not the issue.

    A couple of articles may help you solve the problem:

    1. https://github.com/jnicklas/carrierwave/wiki/How-to%3A-Make-Carrierwave-work-on-Heroku – which explains how to configure your app to use the /tmp directory as the cache directory for CarrierWave. Pay attention to the following line:

      use Rack::Static, :urls => [‘/carrierwave’], :root => ‘tmp’ # adding this line

      This instructs rack to serve /carrierwave/xzy from the /tmp directory (useful for storing images temporarily)

    2. Then, using the uploader.cache! method, you can deliberately cache the inbound uploaded file. Once stored, you can do checks to determine whether to call the uploader.store! method which will promote the contents to S3 (assuming you configured S3 as the store for CarrierWave.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to set layout something like What i thought that i will have
I want something to put in my .htaccess file that will hide the .php
I want something like the following: foo.should_receive(:bar).with(an_instance_of(Bla))..... Is this possible? Edit: According to the
I want something that will receive me the processes details, like I receive with
I want something like this: abcdab.search(/a/g) //return [0,4] Is it possible?
I want this: And I thought that passing na.action=na.pass to boxplot would let NA
I am trying to do something very simple. I want to display the video
JS Fiddle (code) This is more of a task I have set myself to
I want to create a simple blog example where users have a favourite category
For my NodeJS project, I want to make a simple module that will give

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.