Sitefinity ASP.NET CMS
Skip Navigation LinksSupport / 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

About Telerik

Telerik, the publisher of Sitefinity CMS, is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting and .NET ORMTFSCode Analysis and Web Application Testing tools. Building on its solid expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Created with passion, Telerik products help thousands of developers every day to be more productive and deliver reliable applications under budget and on time. Read more about Telerik

Copyright © 2002-2010 Telerik. All rights reserved. Powered by Sitefinity