FileManagerAccessControl Class | ![]() |
Namespace: GleamTech.FileUltimate.AspNet.UI
The FileManagerAccessControl type exposes the following members.
Name | Description | |
---|---|---|
![]() | FileManagerAccessControl | Initializes a new instance of the FileManagerAccessControl class |
Name | Description | |
---|---|---|
![]() ![]() | AllowedFileTypes |
Gets or sets the file patterns that are allowed. This property restricts all actions (List, Delete,
Rename, Copy, Move, Extract, Compress, Download and Upload). This means only allowed file types will
be visible and manageable in the file list.
If not set, any file type is allowed ("*").
DeniedFileTypes take precedence over AllowedFileTypes. For instance, when AllowedFileTypes is set to "*.jpg|*.gif" and DeniedFileTypes is set to "*.gif", only "*.jpg" will be allowed. When combining patterns in string representation, they should be separated by vertical bar (|). In a pattern, you can use these wildcards:
Some pattern examples:
|
![]() ![]() | AllowedPermissions |
Gets or sets a value that specifies the allowed permissions for the access control.
The default is None.
DeniedPermissions take precedence over AllowedPermissions. For instance, when AllowedPermissions is set to Full and DeniedPermissions is set to Download and Upload, all permissions except Download and Upload will be allowed. When combining permissions, they should be separated by comma in string and by bitwise 'or' operator in code (| in C# and OR in VB). |
![]() ![]() | DeniedFileTypes |
Gets or sets specifies the file patterns that are denied.
Denied patterns take precedence over allowed patterns.
This property restricts all actions (List, Delete,
Rename, Copy, Move, Extract, Compress, Download and Upload). This means only allowed file types will
be visible and manageable in the file list.
If not set, no file type is denied ("").
DeniedFileTypes take precedence over AllowedFileTypes. For instance, when AllowedFileTypes is set to "*.jpg|*.gif" and DeniedFileTypes is set to "*.gif", only "*.jpg" will be allowed. When combining patterns in string representation, they should be separated by vertical bar (|). In a pattern, you can use these wildcards:
Some pattern examples:
|
![]() ![]() | DeniedPermissions |
Gets or sets a value that specifies the denied permissions for the access control.
The default is None.
DeniedPermissions take precedence over AllowedPermissions. For instance, when AllowedPermissions is set to Full and DeniedPermissions is set to Download and Upload, all permissions except Download and Upload will be allowed. When combining permissions, they should be separated by comma in string and by bitwise 'or' operator in code (| in C# and OR in VB). |
![]() | LimitDiskUsage |
Gets or sets a value that specifies whether to override the quota setting of the parent folder,
i.e. when you need unlimited disk space in a subfolder of a parent folder with limited disk space.
When Quota property is set, LimitDiskUsage is set to true implicitly.
|
![]() | Path |
Gets or sets the relative path of a root folder where this access control will be applied to.
For instance, to apply the access control to the root level, the value should be set to \.
To apply the access control to a subfolder named subfolder1, the value should be set to \subfolder1.
This property can not be empty and should start with backslash (\) or forward slash (/).
By default, a subfolder inherits from first parent with an access control unless there is an explicit
access control for that subfolder.
You can also use these wildcards in a path:
|
![]() | Quota |
Gets or sets the quota limit. It can be set in <Number> B/KB/MB/GB/TB format
(eg. 1024 or 1024 B, 200 KB, 30 MB, 5 GB, 1 TB).
If omitted, the quota will be unlimited.
|