When you want to create a new resource type, you should place the section below in your configuration file. Note that the options you can use are described in the Handling Built-in Resource Types section.
Example: Suppose you want to create a new resource type named MSdocs, which will only be used for files with the .doc, .ppt, and .xls extensions and the maximum size of 2 megabytes. Add the following code to your configuration file.
type = ResourceType.Add( "MSdocs" );
type.Url = BaseUrl + "docs/";
type.Dir = BaseDir == "" ? "" : BaseDir + "docs/";
type.MaxSize = 2097152; // 2MB in Bytes
type.AllowedExtensions = new string[] { "doc", "ppt", "xls" };
type.DeniedExtensions = new string[] { };
This code should be placed in the configuration file, anywhere after the ResourceType type; line.
When loading CKFinder, the type querystring parameter can be used to display a specific type only. If type is omitted in the URL, the DefaultResourceTypes setting is used (it may contain the resource type names separated by a comma).
If the DefaultResourceTypes setting is left empty, all types — including the newly defined ones — are loaded. When you want to limit CKFinder to only use the newly defined MSdocs resource type, use the following code:
DefaultResourceTypes = "MSdocs";