RichTextEditor allows the developers control the maximum size of folders.

You can modify the maximum folder size using the following methods:

Setting maximum folder size by editing security policy file

The security policy file (default.config, admin.config and guest.config) can be found in the richtexteditor/config folder. In security policy file you can find the security setting MaxFolderSize. This setting defines the largest size of file that can be uploaded.

MaxFolderSize setting can go directly under the root <rteconfig> node of security policy file. In this case, this setting will apply to all dialogs. It can also be placed into <category> node. In this case, it will only apply to the specified dialogs.

You can modify this settings to meet your own requirements.

<security name="MaxFolderSize">102400</security><!-- This setting applies all dialogs ("Gallery","Image","Document","Video","Template"). -->
<category for="Video">
       <security name="MaxFolderSize">204800</security><!-- This setting applies "Video" dialog only.-->
<category for="Gallery,Image">
       <security name="MaxFolderSize">30000</security><!-- This setting applies "Gallery","Image" dialogs only.-->

Programmatically Setting maximum folder size

RichTextEditor provides a powerful method named Editor.SetSecurity that allows you programmatically manage the security settings.

Editor1.SetSecurity("*", "*", "MaxFolderSize", "102400");  <!-- This setting applies all dialogs ("Gallery","Image","Document","Video","Template"). -->
Editor1.SetSecurity("Video", "*", "MaxFolderSize", "204800");  <!-- This setting applies "Video" dialog only. -->
Editor1.SetSecurity("Gallery,Image", "*", "MaxFolderSize", "30000");  <!-- This setting applies "Gallery","Image" dialogs only. -->

Send feedback about this topic to CuteSoft. © 2003 - 2018 CuteSoft Components Inc. All rights reserved.