Reputation: 9935
So, whenever I upload a file in dev mode in Rails with Carrierwave, I get these temporary RackMultipart*
files right in the Rails root. Even though in config/carrierwave.rb
I have the following setting:
CarrierWave.configure do |config|
config.cache_dir = 'tmp/uploads'
end
And no, I didn't change cache dir in the uploader. Worst of all, it seems like for every new file upload, it creates 2 identical (in content, but not in name) RackMultipart*
files. Any idea how to fix this?
Upvotes: 2
Views: 696
Reputation: 121
This is a problem with the sticky bit.
You must do :
chmod o+t /tmp
Then in rails console check the path with :
Dir::tmpdir
Upvotes: 2