# Restricted Symbols

There are some sets of symbols, which use in a URL path is considered as restricted, saved or invalid and should be avoided.	Above you can find a list of the main errors that are thrown in case you are using any of these characters:

## Server error: A potentially dangerous Request.Path value was detected from the client (&).

![fileexplorer-restricted-symbols-1](https://www.telerik.com/products/aspnet-ajax/documentation/assets/b4b1d68ec9017f5b0da6ec5d58439885/fileexplorer-restricted-symbols-1.png)

This error is not caused by **RadFileExplorer's** limitation, but indicates that the publishing was cancelled due to the ASP.NET validators detecting a dangerous input in the request path. This information concerns the following characters: \*\*<,>,*,%,&,:,\**. You can predefine the set of the restricted symbols by both setting `ValidateRequest="false"` to the declaration of the page, containing FileExplorer and adding the [requestPathInvalidCharacters](https://msdn.microsoft.com/en-us/library/system.web.configuration.httpruntimesection.requestpathinvalidcharacters.aspx) in the `<httpRuntime>` section of the *web.config*:

```XML
<system.web>
	<httpRuntime requestPathInvalidCharacters="" />
</system.web>
```

## Server Error: The resource cannot be found.

![fileexplorer-restricted-symbols-2](https://www.telerik.com/products/aspnet-ajax/documentation/assets/7a75aa5105c34902014b45d34efd7fae/fileexplorer-restricted-symbols-2.png)

There is another set of characters, which are told to be reserved or/and unsaved ones (e.g., **#, %, ?, /**, etc.). Even if you configure your application to skip the path validation (refer the previous Section of this article), there will remain symbols, which could not be used as a path to a file. You can find detailed information about them here: [W3C Recommendations](https://www.w3.org/Addressing/URL/4_URI_Recommentations.html).

A possible way to work around such errors is to replace the needed reserved character with its [encoding](https://www.w3schools.com/tags/ref_urlencode.asp) just before the file is opened in the **RadFileExplorer**'s [ClientFileOpen](https://www.telerik.com/products/aspnet-ajax/documentation/controls/fileexplorer/client-side-programming/events/events) event (respectively, before its path is passed through the URL):

```JavaScript
function OnClientFileOpen(explorer, args) {
	var encodedPath = args.get_path().replace(/#/g, 's%23')
	args.get_item().set_url(encodedPath);
}
```

## Error Message: Filename is Invalid or Cannot Contain Any of the Following Characters.

![fileexplorer-restricted-symbols-3](https://www.telerik.com/products/aspnet-ajax/documentation/assets/b63625c9b2a85b5a4f745dd3d8f04912/fileexplorer-restricted-symbols-3.png)

There is a third set of characters, which are restricted by the operating system itself. If the content of the **RadFileExplorer** is not taken from the file system (e.g., from a Data Base) these characters have to be avoided.

You can see a way to prevent the use of all restricted symbols in FileExplorer it in this KB article: [How to notify the user that an image with invalid file name is being uploaded](https://www.telerik.com/support/kb/aspnet-ajax/editor/notify-the-user-for-image-with-invalid-file-name-is-uploaded.aspx).
