ImageManager file directory

2 posts, 0 answers
  1. nickJr
    nickJr avatar
    18 posts
    Member since:
    Jul 2007

    Posted 11 Jan 2010 Link to this post

    I am using the radedit and want to give access to a folder for images.

    <telerik:radeditor id="htmlView" runat="server" skin="Hay" Width="100%" Height="350px" AutoResizeHeight="true" backcolor="White" OnClientLoad="OnClientLoad"   ToolbarMode="Default" EnableResize="false" ToolsFile="~/App_Data/NewTools.xml"  EditModes="All" OnClientCommandExecuting="OnClientCommandExecuting">

    And I have added the ImageManager Tag as follows:

          <ImageManager ViewPaths="c:\,c:\temp"

    When I click to add an image it gives me the following error:
    'c:\' is not a valid virtual path.

    Can I ONLY have virtual directories? If I want to open files in c:\ or MyDocuments directory in the local computer, how can i do it?

    Please let me know.
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 12 Jan 2010 Link to this post

    Hi Pra,

    RadEditor is an HTML editor and inserting an image requires the specific image to be publicly available (e.g. on a web server) so it can be seen from users viewing the page. That is why ViewPaths / UploadPaths / DeletePaths properties should be set to web server's directories.

    If a user wants to insert an image from their local machine, first she should upload the image to the server, if she has the appropriate permissions.

    In addition, if your web application is running on the 2003 server IIS 6 platform you can use a Shared Drive for images and documents. Detailed information regarding this is available in the following KB article: Uploading images and files to a Shared Drive

    Sincerely yours,
    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