Saving files outside of shared folder with attachment_fu in ruby ​​on rails

I am using attachment_fu in a rails application to handle file uploads and I want to store them in a directory at the root of the application called attachments. however, I cannot get this plugin to save the file in any other directory than the public one. Can anyone tell me how to do this?

THH

-C

+1


a source to share


1 answer


Have you tried something a la?



has_attachment :storage => :file_system, :path_prefix => 'attachments/'

      

+1


a source







All Articles