Nucleus .Net Core CMS

FolderSelector Control

Overview

The FolderSelector control (View Component) provides a user interface for selecting a folder from the file system. It supports multiple file system providers, navigation through folder hierarchies, and filtering of folder contents. The control is designed to be used in forms where a folder selection is required, such as file upload destinations or folder management features.

Screenshot

Usage

Add a FolderSelector control to your Razor view using code like this:

@await Component.InvokeAsync(typeof(Nucleus.ViewFeatures.Controls.FolderSelector), new 
{ 
  folder = Model.DocumentationFolder, 
  PropertyName = "DocumentationFolder" 
})

Parameters

model A Folder object representing the currently selected folder.
propertyName The name of the view model property to bind the selected folder to. Defaults to "SelectedFolder".
pattern A regular expression pattern used to filter folder contents (files and subfolders).

Notes

  • The Folder Selector control is often used alongside a FileUpload control to allow users to upload new files directly from your user interface.