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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:20:14+00:00 2026-05-24T20:20:14+00:00

I am currently allowing users to upload CSV files, processing them, saving database entries

  • 0

I am currently allowing users to upload CSV files, processing them, saving database entries based on the content, and then having to go back and clean-up the CSV. I’m wondering if it’s possible to upload, and process by keeping the CSV in memory without it touching the disk?

How do I tell paperclip to not save the original file?

…seems to suggest that leaving the field off the migration will do this but I haven’t had luck with this approach. Any ideas?

  • 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-05-24T20:20:15+00:00Added an answer on May 24, 2026 at 8:20 pm

    The whole point of paperclip is to save the file. You could have something like the following as your action and completely skip the use of paperclip.

    def upload
      CSV.parse(params[:file].read) do |row|
        # do whatever you need to do with the row
      end
    end
    

    with a form like this:

    <%= form_tag('/path/to/upload') do %>
      <%= file_field_tag :file %>
      <%= submit_tag %>
    <% end %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been tasked with allowing users to upload files to a webpage, and then
For a project I am currently working on, I am interested in allowing users
I am allowing users of the admin panel of my website to upload photos,
Currently we have a hybrid ASP/PHP setup connecting to a SQL Server 2005 database.
Currently, I am writing up a bit of a product-based CMS as my first
As part of my rhythm game that I'm working, I'm allowing users to create
Currently I'm allowed users to add application/x-shockwave-flash objects to their profiles in my website.
So I want to communicate with an OracleDB through my Android app. Allowing users
I'm currently working on a reasonably complicated data input form, based around ASP.NET Web
I am working on a system using php/mysql where I am allowing users to

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.