Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Restrict file types that are allowed to at in the file manager



I'm trying to exclude som file types from beiing added in the file manager with out any success.

I have tried to add the "llegalCharactersRegex" attribute with an extension of the default regex to the 

<add showInFileManager="true" virtualName="Global Files" virtualPath="~/Global/"
bypassAccessCheck="false" indexingServiceCatalog="Web" physicalPath="...\Global"
customFileSummary="~/FileSummary.config" name="SiteGlobalFiles"
type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" />

But this did no have any effect. But is this the right element to put the illegalCharactersRegex attribute?

Jul 16, 2013 9:59

The illegalCharactersRegex attribute should be placed on the <virtualpath> element, not the <add> subelement.

I.e. should look like this:

<virtualPath illegalCharactersREgex="yourRegexHere" customFileSummary="~/FileSummary.config">
      <add showInFileManager="true" virtualName="Global Files" virtualPath="~/Global/" etc etc />


More information on restricting file types in file manager can be found at

Edited, Oct 04, 2013 1:19
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.