When you want to create a new resource type, you should place the section below in your config.xml
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.
<types> <type name="MSdocs"> <url>%BASE_URL%MSdocs/</url> <directory>%BASE_DIR%MSdocs</directory> <maxSize>2M</maxSize> <allowedExtensions>doc,ppt,xls</allowedExtensions> <deniedExtensions></deniedExtensions> </type> </types>