FileManagerPermissions Enumeration

Defines the file manager permissions.

When combining permissions, they should be separated by comma in string and by bitwise 'or' operator in code (| in C# and OR in VB).

Definition

Namespace: GleamTech.FileUltimate.AspNet.UI
Assembly: GleamTech.FileUltimate (in GleamTech.FileUltimate.dll) Version: 9.1.3
C#
[FlagsAttribute]
public enum FileManagerPermissions

Example

Setting access control permissions in code:

C#
//allow only read-only set of permissions
accessControl.AllowedPermissions = FileManagerPermissions.ReadOnly;

//allow only ListSubfolders and ListFiles permissions
accessControl.AllowedPermissions = FileManagerPermissions.ListSubfolders | FileManagerPermissions.ListFiles;

//allow all except Download and Upload permissions
accessControl.AllowedPermissions = FileManagerPermissions.Full;
accessControl.DeniedPermissions = FileManagerPermissions.Download | FileManagerPermissions.Upload;

Setting access control permissions in ASPX markup:

ASPX
<%-- allow only read-only set of permissions --%>
<GleamTech:FileManagerAccessControl 
    Path="\" 
    AllowedPermissions="ReadOnly" /> 

<%-- allow only ListSubfolders and ListFiles permissions --%>
<GleamTech:FileManagerAccessControl 
    Path="\" 
    AllowedPermissions="ListSubfolders, ListFiles" /> 

<%-- allow all except Download and Upload permissions --%>
<GleamTech:FileManagerAccessControl 
    Path="\" 
    AllowedPermissions="Full"
    DeniedPermissions="Download, Upload" />

Members

None None of the permissions (unset).
ListSubfoldersAbility to list subfolders.
ListFilesAbility to list files.
CreateAbility to create files or subfolders.
DeleteAbility to delete files or subfolders.
RenameAbility to rename files or subfolders.
EditAbility to overwrite existing files.
UploadAbility to upload files or subfolders.
DownloadAbility to download files or subfolders.
CompressAbility to compress (zip) files or subfolders.
ExtractAbility to extract archive files.
CutAbility to cut files or subfolders.
CopyAbility to copy files or subfolders.
PasteAbility to paste files or subfolders.
PreviewAbility to preview files with DocumentViewer, ImageViewer or MediaPlayer.
PrintAbility to print documents (used by DocumentViewer).
ReadOnlyThe read-only permissions combined.
FullAll the permissions combined.

See Also