This is a migrated thread and some comments may be shown as answers.

External UploadPaths & ViewPaths

3 Answers 77 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ahmet Özgür
Top achievements
Rank 1
Ahmet Özgür asked on 17 Sep 2009, 07:37 AM
Hello,

I have a rad editor which i want to change its upload and viewpath to a direcotry which is not under my application.
Lets say that my application is at D:\MyWebSites\Site1\
But i want to show a target such as D:\Images\
Because if the target is under my application, when i publish a new version of my site, the image will be deleted.
Here is my code

<telerik:RadEditor ID="txtDescription" runat="server" EnableResize="False" Height="300px" 
                                ToolsFile="~/App_Data/BasicTools.xml" Width="552px" Skin="Default"
                                <Content>                     
                     
                                </Content> 
                                <ImageManager UploadPaths="D:\Images" ViewPaths="D:\Images" /> 
                            </telerik:RadEditor> 

It gives an error that "... is not a valid virtual path". The viewpath can also be something like http://localhost/Images. But i gives the same error.

Regards.


3 Answers, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 18 Sep 2009, 11:56 AM
Hi Ahmet,

Paths must be virtual folders within the same web application. E.g. they need to start with ~/.
Please examine the following demo for more information:
http://demos.telerik.com/aspnet-ajax/editor/examples/filemanagers/defaultcs.aspx

All the best,
Tervel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Espen Fosshaug
Top achievements
Rank 1
answered on 01 Dec 2009, 10:42 AM
Hi.

Can this be fixed?
We use RadEditor to create e-mails in an webapplication, so we need the url for the images to be a http:// location. The virtual path is useless when reading an email.
Anyway to handle this?
0
Fiko
Telerik team
answered on 02 Dec 2009, 03:31 PM
Hi Espen,

By default the RadFileExplorer works with virtual paths only. In your case you need to implement a custom file browser content provider that will work with the desired paths. In your case I recommend you check this blog post for more information.

I hope this helps.

Kind regards,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Ahmet Özgür
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Espen Fosshaug
Top achievements
Rank 1
Fiko
Telerik team
Share this question
or