Default file extensions for Uploads

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

By crawf - March 16, 2009

I am using a large number of editors for which I want to disallow uploading of wmf, mov, and swf files and allow uploading of pdf and doc files. As a result, I am changing nearly everything in this field for nearly every editor I create.

Where can I find and change the default allowable file types?

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