Cute Editor for ASP

Restricting Media Files by Extensions and Types

Restricting Media Files by Extensions and Types

 

One of the Cute Editor new and innovative capabilities is Restricting uploading media Files by Extensions and Types. You can filter the type of media files you want to upload so only specified file types are allowed.

This topic describes how to manage uploading media file type restrictions.

 

  

 

You can restrict uploading media Files by Extensions and Types using the following methods:

1. Edit security policy file.


The security policy file (default.config, admin.config and guest.config) can be found in the CuteEditor_Files/Configuration/Security folder. In security policy file you can find the MediaFilters element element . By default, it contains the following value:


<
security name="MediaFilters">

       <item>.mpg</item>
       <item>.avi</item>

       <item>.mp3</item>

</security>
  

You can modify the MediaFilters element to meet your own requirements.  


2. Programmatically restrict uploading image Files by Extensions and Types


Example:

editor.MediaFilters=".avi,.mpg"