Telerik

Knowledge Base

Home/Web Content Management/Developer Network/Knowledge Base/How to Change the Flash Manager's File Upload Path Programmatically

How to Change the Flash Manager's File Upload Path Programmatically

Introduction

For clients using Sitefinity on Web Farms, you might want to have a special location for upload Flash files. This can be done programmatically in the page load event of the RadEditor.

Instructions

1.    Create the following file in the ~/App_Data/Configuration directory : Telerik.Sitefinity.Configuration.ControlsConfig.xml
2.    To the file, add this code:

<?xml version="1.0" encoding="utf-8"?> 
<controlsConfig> 
<viewMap> 
<viewSettings hostType="Telerik.Cms.Engine.WebControls.Design.GenericContentDesigner"   layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Generic_Content/GenericContentDesigner.ascx" /> 
    </viewMap> 
</controlsConfig> 
 

3.    Open your command prompt and type in IISReset. If you are using Windows XP, go to Start > Run and type in CMD. For Vista/Windows Server 2008, type CMD in the search box. Then, right click on the CMD icon and click Run as Administrator
4.    In the attachment, copy the ~/Root/Sitefinity/Admin/ControlTemplates/Generic_Content/GenericContentDesigner.ascx file into the ~/Sitefinity/Admin/ControlTemplates/Generic_Content directory of your application
5.    Under the load method, configure the path programmatically

Please note that the Flash Manager in the ASP.NET code below was commented, so the code behind upload path method is possible:

<%--<FlashManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" />--%> 

For more information on configuring paths programmatically, please read this article.

Article Info

Article relates to Sitefinity 3.6 and above
Created by Joseph Anderson
Last modified by Joseph Anderson
Related categories: Deployment

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2010 Telerik. All rights reserved.