Renaming folders to something containing "&"

1 Answer 15 Views
FileExplorer
Loy
Top achievements
Rank 1
Loy asked on 28 Mar 2024, 09:29 PM

With file explorer, I have no issues with creating a new folder with a string that contains a "&". The folder is created as expected.

But when I rename an existing folder to a string that contains a "&", the system will replace the "&" and "&". This behaviour is shown in the fileexplorer demo :

https://demos.telerik.com/aspnet-ajax/fileexplorer/examples/overview/defaultcs.aspx

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 29 Mar 2024, 11:23 AM | edited on 29 Mar 2024, 01:26 PM

Hello,

In RadFileExplore, there are some sets of symbols, that are considered restricted.

Please check out the dedicated article to find more about such scenarios and how to handle them:

Even if you replace and update the & entity with & on the client, it will be replaced on the server back with & because the ampersand (&) is a special URL character which is causing the path to be invalid. Please take a look at the following blog post describing the received error in details:
http://www.hanselman.com/blog/ExperimentsInWackinessAllowingPercentsAnglebracketsAndOtherNaughtyThingsInTheASPNETIISRequestURL.aspx.

Best Regards,
Rumen
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
Tags
FileExplorer
Asked by
Loy
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or