Search code examples
ruby-on-railspathattachment-fu

saving files outside the public folder with attachment_fu in ruby on rails


I'm using attachment_fu in a rails application to handle file uploads, and i want to save them in a directory in the root of the application called attachments. however, I cannot seem to make this plugin save a file in any other directory than public. Can anyone tell me how to do this?

thx

-C


Solution

  • Have you tried something a la?

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