Configure EPiServer File Manager

I got a question about the File Manager from one of the attendees on my last EPiServer Developer training and I will share my answer with you.

You control the name, order and number of starting points in the File Manager for EPiServer CMS 5 by adding or removing Virtual Path Provides in web.config.

<virtualPath customFileSummary="~/FileSummary.config"> 


    <add showInFileManager="false" virtualName="Page Files" virtualPath="~/PageFiles/" ... />  

    <add showInFileManager="true" virtualName="Global Files" virtualPath="~/Global/" ... />  

    <add showInFileManager="true" virtualName="Documents" virtualPath="~/Documents/"... />  

The virtualName is what you see in the File Manager.

EPiServer File Manager

You can hide providers from the File Manager by changeing the showInFileManager attribute to false but these providers will still be available from code. This can be usefull for generated thumbnail and similar.

If you open the File Manager without a page selected the first visible provider in the list will get focus.

There is usually a current page when you open the file manager in edit mode (either in the action window or as a modal dialog) and you will always see the page folder or get a question if you want to create a new page folder if it does not exist. There is currently no way to disable page folders in the current (5.1.422) release as far as I know.

Which Virtual Path Provider that is used to store Page Folders is also controlled in web.config.

<episerver ...> 


    <site ...>  

      <siteSettings ... pageFolderVirtualPathProvider="SitePageFiles" ... />  

A common mistake is to mix up the Page ID and the Page’s Folder ID. They are two separate number sequences and there is a property on the PageData obeject that stores the folder id for each page.


Follow this link to see more examples on how to use EpiServers Unified File System.