THEMES
THEME SETTINGS

File Manager and File Upload - File Manager Access Control

  • Create (F7)
  • Rename (F2)
  • Move (F6)
  • Delete (Del)
  • Refresh
  • 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

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

File Manager 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 a 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 on the File Manager via its SettingsPermissions.Role property. After that, the file manager will display 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 on File Manager. File and folder permissions granted to each role are listed below.

  • Default User. This role allows users only to browse folder contents. Any file/folder modifications and file upload are prohibited. The System folder is hidden in a folder tree.
  • Document Manager. This role allows users to browse folder contents and perform any folder/file operations (including file upload) within the Documents folder only. Any file/folder modifications and file upload within other folders are prohibited. The System folder is hidden in a folder tree.
  • Media Moderator. This role allows users to browse folder contents and perform any folder/file operations (except for file upload) within the Music and Video folders only. Any file/folder modifications and file upload within other folders are prohibited. The System folder is hidden in a folder tree.
  • Administrator. This role allows users to browse folder contents and perform any folder/file operations (including file upload). The System folder is shown in a folder tree. This folder is also fully accessible for any file/folder modifications and file upload.
Version: v2016 vol 2.6
Copyright © 2006-2017 Developer Express Inc
Your Next Great MVC App Starts Here

Get started today and download your 30-day trial of DevExpress MVC Extensions (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress MVC distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress MVC Extensions ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at info@devexpress.com or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.