External UploadPaths & ViewPaths

4 posts, 0 answers
  1. Ahmet Özgür
    Ahmet Özgür avatar
    37 posts
    Member since:
    Jul 2009

    Posted 17 Sep 2009 Link to this post

    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.


  2. Tervel
    Admin
    Tervel avatar
    1337 posts

    Posted 18 Sep 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Espen Fosshaug
    Espen Fosshaug avatar
    18 posts
    Member since:
    Sep 2009

    Posted 01 Dec 2009 Link to this post

    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?
  5. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 02 Dec 2009 Link to this post

    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.
Back to Top