I need to upload files and then parse them using paperclip?
Currently it is uploaded in the /system folder, which isn’t allowed in heroku.
I don’t need the uploads to be persistent…I parse it and then store them.
So I’d like to be able to save into /tmp and then parse, and then let it get blown away later.
Thoughts on how to do this (if I should do this)?
Heroku’s docs say to use Tempfile.
Well, it says in the doc:
Then, if you click on the Adam Wiggins link below that, he says this is available through the Tempfile interface.
Using Tempfile is easy, but your file may not exist if heroku considers read/write file operations different processes.
Edit: The Answer