Cute Editor for ASP

Restricting flash uploads by size

How to limit the size of the flash files to be uploaded?



You can easily limit the size of the flash files to be uploaded 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 MaxFlashSize element which contains the value of max flash file upload size limit (in kbs).  By default, it contains the following value:


<
security name="MaxFlashSize">100</security>
  

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

For example:

<security name="MaxFlashSize">200</security>


2. Programmatically limit the size of the flash files


Example:

editor.MaxFlashSize = 400