Sitefinity CMS

Upload Images and Documents with RadEditor Send comments on this topic.
How-to > Controls > RadControls for ASP.NET AJAX > Upload Images and Documents with RadEditor

Glossary Item Box

Sitefinity 3.2 introduces the Images and Documents module. Still, another option to avoid having users work with file systems is to use RadEditor's functionality. This topic will focus on how to enable Image and Document Manager using the RadEditor control.

 

The preferred functionality is to have users fill in the name of the document, then browse to the file, which then gets automatically uploaded. The Telerik control RadEditor for ASP.Net AJAX supports similar functionality out-of-the-box. All that has to be done is to make the necessary settings to display document and image managers on the ToolBar and set the appropriate permissions for the folders where the files will be uploaded. This is how to achieve this:

  1. Open the ~/Sitefinity/Admin/ControlTemplates/EditorToolsFile.xml file and make sure the following tools are enabled:

    EditorToolsFile.xml Copy Code
    <tool name="ImageManager" enabled="true" />
    <
    tool name="DocumentManager" enabled="true" />  

     

  2. These are sample settings for the Image Manager and Document Manager:

    Image and Document Managers Copy Code
    <ImageManager

       
    ViewPaths="~/Images"
       
    UploadPaths="~/Images,~/Images/UserA"
       
    SearchPatterns="*.gif,*.jpg,*.jpeg,*.png,*.bmp"/>

    <DocumentManager
       
    ViewPaths="~/Files"
       
    UploadPaths="~/Files,~/Files/UserA" />  

    Thus, user A will be able to upload images and documents in the UserA sub-folder.

    Upload Image

     Figure 1

    Also, depending on their permissions, users can create new folders.