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:
-
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" />
|
-
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.

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