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

how can I set absolute url in telrik RedEditor classic version in ImagesPaths,UploadImagesPaths,DeleteImagesPaths

3 Answers 140 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sanjay
Top achievements
Rank 1
sanjay asked on 20 Mar 2012, 11:08 AM
how can I set absolute url in telrik RedEditor classic version  in ImagesPaths,UploadImagesPaths,DeleteImagesPaths

Currently

ImagesPaths

 

="/Uploads/categories/images/"

 

 

UploadImagesPaths="/Uploads/categories/images/" DeleteImagesPaths="/Uploads/categories/images/
but I want

 

ImagesPaths="http://www.test.com/Uploads/categories/images/"

 

 

 

 

 

UploadImagesPaths="http://www.test.com/Uploads/categories/images/" DeleteImagesPaths="http://www.test.com/Uploads/categories/images/

Because relative path is not found in my Suatition.

Best Regrds
Sanjay Singh

 

 

 

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 21 Mar 2012, 04:54 PM
Hello,

You should set the StripAbsoluteAnchorPaths and StripAbsoluteImagesPaths properties to false.

  • StripAbsoluteAnchorPaths - specifies whether absolute anchor paths should be stripped (default is true)
  • StripAbsoluteImagesPaths - specifies whether absolute images paths should be stripped (default is true)


Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
sanjay
Top achievements
Rank 1
answered on 21 Mar 2012, 05:27 PM
hi Telerik Support

I have set StripAbsoluteAnchorPaths and StripAbsoluteImagesPaths properties to false. but its give the following error when pass full Url http://perfectfit.testbeddomain.com/Uploads/categories/images/.

Configration in the manner
1 Make  Website : perfectfit site 
2.create virtual Directory :cms.net (CMS Configre) - We update the image by CMS
3.create Virtual Directory uploads Folder Configure
 

Server Error in '/cms.net' Application.

'http://perfectfit.testbeddomain.com/Uploads/categories/images/' is not a valid virtual path.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: 'http://perfectfit.testbeddomain.com/Uploads/categories/images/' is not a valid virtual path.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): 'http://perfectfit.testbeddomain.com/Uploads/categories/images/' is not a valid virtual path.]
   System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) +8872907
   System.Web.HttpServerUtility.MapPath(String path) +90
   Telerik.WebControls.RadEditorUtils.FileSystemContentProvider.ResolveRootDirectoryAsTree(String path) +33
   Telerik.WebControls.RadEditorUtils.FileBrowserContentProvider.ResolveViewPaths() +64
   Telerik.WebControls.EditorControls.FileBrowser.SerializeViewPaths() +116
   Telerik.WebControls.EditorControls.FileBrowser.OnPreRender(EventArgs e) +169
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171


0
Rumen
Telerik team
answered on 26 Mar 2012, 01:33 PM
Hi,

You should put a tilde ~ symbol before the URL so that the paths point to the root of your web application, e.g.

ImagesPaths="~/Uploads/categories/images/"
UploadImagesPaths="~/Uploads/categories/images/"
DeleteImagesPaths="~/Uploads/categories/images/

When the path starts with / slash this means that it points to the root of IIS.

The file browser dialogs of RadEditor Classic could work only with virtual paths.

All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
sanjay
Top achievements
Rank 1
Answers by
Rumen
Telerik team
sanjay
Top achievements
Rank 1
Share this question
or