CSV Import in production

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ā€¦