Open naw opened 9 years ago
CarrierWave has an option for moving files to its cache rather than copying them:
https://github.com/carrierwaveuploader/carrierwave#large-files
When using move_to_cache, if you're using File.open to open the file uploaded for the original resource, CarrierWave will move that file to its cache (and later delete it), thus destroying the original resource's file.
move_to_cache
File.open
Hi Naw, thank you for feedback, I'll check into that
CarrierWave has an option for moving files to its cache rather than copying them:
https://github.com/carrierwaveuploader/carrierwave#large-files
When using
move_to_cache
, if you're usingFile.open
to open the file uploaded for the original resource, CarrierWave will move that file to its cache (and later delete it), thus destroying the original resource's file.