How can I change the upload directory for paperclip on heroku to /tmp?
问题 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)? 回答1: Heroku's docs say to use Tempfile. Well, it says in the doc: There are two directories that are writeable: ./tmp and ./log (under