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

InitialPath - Invalid characters in folder name.

2 Answers 152 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
KAB
Top achievements
Rank 1
KAB asked on 25 Sep 2010, 01:03 PM
Code FileExplorer.InitialPath = "~/Documents";  or on any folder throws message box "Invalid characters in folder name."
This bug was introduced in Telerik.Web.UI_2010_2_826 and later. All previous releases until Telerik.Web.UI_2010_2_817_hotfix.zip was all right in such a functionality.
Check it, please.

Resolution has been found. Thanks.

How to delete this post?

2 Answers, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 29 Sep 2010, 02:09 PM
Hi,

Actually this is not a bug but a designed behavior. InitialPath property expects physical path as value, and the "~/FolderName" is a virtual path - the ~ (tilde) is invalid character for folder / file names.

Setting virtual path to the InitialPath property was possible in the previous versions due to a bug in RadFileExplorer.

Best wishes,
Dobromir
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ashwin Shriwas
Top achievements
Rank 1
answered on 18 Apr 2016, 06:36 AM

 My ImageManager path is given below:

string[] viewPath = new string[] { @"~/SchemeImage/" + (!string.IsNullOrEmpty(Request.QueryString["CorporateSchemeID"]) ? Convert.ToString(Request.QueryString["CorporateSchemeID"]) : "") };

It generates the path : ~/SchemeImage/478

When I select Image in RADEditor and click on ImageManager Icon it gives me error "Invalid Characters in folder name". I am guessing due to tilde (~) sysmbol it is throwing this error. Please help to resolve this issue.

Note: SchemeImage is virtual directory in IIS which is pointing to different server.

Tags
FileExplorer
Asked by
KAB
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Ashwin Shriwas
Top achievements
Rank 1
Share this question
or