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

ImageManager file directory

1 Answer 100 Views
Editor
This is a migrated thread and some comments may be shown as answers.
nickJr
Top achievements
Rank 1
nickJr asked on 11 Jan 2010, 10:27 PM
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"
       </ImageManager>

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.
thanks

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 12 Jan 2010, 12:07 PM
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,
Dobromir
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
nickJr
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or