# CSV Import in production

**URL:** <https://www.ruby-forum.com/t/csv-import-in-production/179518>\
**Category:** Rails\
**Created:** [November 26, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/csv-import-in-production/179518 "2009-11-26T19:09:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinathbtech](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7bcc69/32.png) [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Post date:** [November 26, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/csv-import-in-production/179518/1 "2009-11-26T19:09:16Z")

</div>

Hi,

Where can we locate csv temp files in application .  
I am facing temp file issue when running applications in production  
mode.  
When doing server restart i am able to upload new file and not uploading  
again unless restart. How can we upload csv files many times with out  
restarting server every time.

Here is my code:

def csv\_import  
@parsed\_file=CSV::Reader.parse(params[:dump][:file])  
n=0  
@parsed\_file.each do |row|  
c=User.new  
c.login=row[1]  
if c.save  
n=n+1  
GC.start if n%50==0  
end  
end

thnaks,  
sri…
