Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Access Control

  • Expand/collapse folder containerExpand/collapse folder container
  • Create (F7)Create
  • Rename (F2)Rename
  • Move (F6)Move
  • Delete (Del)Delete
  • RefreshRefresh
  •  
    ...
  • Collapse
    Locked for uploadFiles
    • Expand
      Locked for uploadDocuments
      • Expand
        Locked for uploadProjects
        • Locked for uploadTest project
        • Locked for uploadXml list
      • Locked for uploadReports
    • Expand
      Locked for uploadImages
      • Locked for uploadEmployees
      • Locked for uploadProduct icons
    • Locked for uploadMusic
    • Locked for uploadVideo
Upload

Allowed Extensions: .jpg, .jpeg, .gif, .rtf, .txt, .avi, .png, .mp3, .xml, .doc, .pdf

Roles

This demo shows how to set up folder and file access permissions, grant them to security roles and enforce specific roles using ASPxFileManager.

ASPxFileManager allows you to define access permissions for folders and files using a set of folder/file access rules (see the file manager's SettingsPermissions.AccessRules collection). An access rule specifies the path to which it is applied and lists permissions (allowed or denied actions) associated with this rule. You can easily set up access rules for folders (including their files and child folders) and individual files using FileManagerFolderAccessRule and FileManagerFileAccessRule elements.

In addition, you can associate any number of access rules with specific security roles to group related permissions together. To associate an access rule with a security role, assign the role's name to the rule's Role property. Related access rules should be assigned matching role names.

Any created role can be enforced using the ASPxFileManager from its SettingsPermissions.Role property. After that, the file manager will display the folder and files, and provide access permissions to them based on the assigned role.

In the demo, you can select one of the security roles listed above to enforce it using ASPxFileManager. The file and folder permissions granted to each role are listed below.

  • Default User. This role only allows users to browse folder content. All file/folder modifications or file uploads are prohibited. The System folder is hidden in a folder tree.
  • Document Manager. This role allows users to browse folder content and perform file/folder operations (including file uploads) within the Documents folder only. All file/folder modifications or file uploads within other folders are prohibited. The System folder is hidden in a folder tree.
  • Media Moderator. This role allows users to browse folder content and perform folder/file operations (except for file uploads) within the Music and Video folders only. All file/folder modifications or file uploads in other folders are prohibited. The System folder is hidden in a folder tree.
  • Administrator. This role allows users to browse folder content and perform file/folder operations (including file uploads). The System folder is shown in a folder tree. This folder is also fully accessible for all file/folder modifications or file uploads.
Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxFileManagerAndUploadDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxFileManagerAndUploadDemos