Cute Editor for ASP

Setting up the Media gallery path

Setting up the Media gallery path

To enable the media management function of the Cute Editor control, you must set up a managed media gallery folder.

This is simply a folder in which you will be placing media files for your users to use in their content. Create a folder in your application’s root folder. (For most applications, this is your web server’s root folder, or the folder where your Visual Studio .NET project file is located.) The folder can be named something like /uploads/,  /media or /UserMedia. 

Make sure that the Internet Guest Account has Read+Write permissions on this folder and its contents.

 


 

How to specify the Media gallery path?

You can easily specify the media gallery path 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 MediaGalleryPath element which contains the media gallery path information within Cute Editor.  By default, it contains the following value:


<
security name="MediaGalleryPath">~/uploads</security>
  

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

For example:

<security name="MediaGalleryPath">/Myuploads</security>

 

2. Programmatically specify the Media gallery path


Example:

//Programmatically specify the Media gallery path 

editor.MediaGalleryPath = "/Uploads"