Search code examples
asp.nettelerikradeditor

Telerik RadEditor - Setting the ImageManager.ViewPath to a directory outside of my current site


I am new to the editor and couldn't find anything when searching. My application is located like so:

http://localhost/CMS/default.aspx

but I want the ViewPath to pick up the directory:

http://localhost/Images

If I try and use Page.ResolveUrl with a relative Url to that location, I get an error saying "Cannot use a leading .. to exit above the top directory."

Is there another way I should be doing this or is it not possible?

Thanks.


Solution

  • What you can do is, you can create a virtual folder under CMS folder with the name Images which will point to the the same folder as localHost/images

    So both localhost/images and localhost/cms/images will point to the same physical location.

    refer this http://www.telerik.com/support/kb/aspnet-ajax/editor/uploading-images-and-files-to-a-shared-drive.aspx