Default file extensions for Uploads

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 16, 2009   (RSS)

Re: [crawf] Default file extensions for Uploads

By Kenny - March 16, 2009

crawf,

Look in the data/schemaPresets folder and find the schema you want to edit. You may even want to create some of your own (don't forget to set the write permissions to 666 or 777 for the new ones you create)

Find the line:

allowedExtensions = "gif,jpg,png,wmv,mov,swf"

and change that to the extensions you want.

To create new ones:

1. Create a new section and let's say you name that one "example".

2. Now go into your data/schemas folder and find example.ini.php

3. Copy that file and put the copy in your data/schemaPresets folder.

4. Now when you go to create a new section, "example" will be in the dropdown list of "Preset" sections.


Make sense?

Kenny

Re: [sagentic] Default file extensions for Uploads

By crawf - March 16, 2009

Great! Works like a charm.

Thanks.