Question

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

Was it helpful?

Solution

Have you tried something a la?

has_attachment :storage => :file_system, :path_prefix => 'attachments/'
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top