Comfortable mexican sofa - upload file to specific path

277 Views Asked by At

At this moment when I upload file into CMS it is being stored in location like:

/system/comfy/cms/files/files/000/000/004/original/logo.jpg 

I would like to be able to specify that logo category files will be stored in path

/system/logo/logo.jpg 

and files of category images in:

/system/images/image.jpg

Where should I start? Im pretty sure that this is impossible to achieve using only comfy GUI however I am quite not experienced in working with this cms, can anyone give me a hint how I can do that?

1

There are 1 best solutions below

1
dariomac On

It's right that Paperclip handles that.

However you can set the upload path changing the value of config.upload_file_options entry in the /config/initializers/comfortable_mexican_sofa.rb file