Question
How to store files out side the public folder in carrierwave?
Carrierwave by default takes in the url generated by store_dir
in the uploader and prepends the path to the public folder of the rails application and stores the files.
For example if
def store_dir
"uploads/#{model.id}"
end
then the file is stored at public/uploads/:attachment_id
If one tries to move the stored files out of the public folder still it saves in the public folder. Does anyone have an idea of how to store the files outside the public folder??
21 17063
21