views:

7

answers:

0

I am trying to use paperclip to upload a csv file to my rails application so I can parse it into the database, but whenever I select the file and try to upload it, the controller returns the error File exists - c: when it tries to save the instance. When I inspect the object in debugger mode I get this:

#<Import id: nil, datatype: "users", processed: 0, csv_file_name: "users.csv", csv_content_type: "application/vnd/ms-excel", csv_file_size = 110, created_at: nil, updated_at: nil>