Class AccessPermission
Represents the class for File Access Permission.
Inherited Members
Namespace: Syncfusion.Blazor.FileManager
Assembly: Syncfusion.Blazor.dll
Syntax
public class AccessPermission
Constructors
AccessPermission()
Declaration
public AccessPermission()
Properties
Copy
Gets or sets a value indicating whether the current item is allowed to be copied.
Declaration
public bool Copy { get; set; }
Property Value
| Type |
|---|
| bool |
Remarks
This property determines whether the current item has the necessary permissions to be copied.
Download
Gets or sets a value indicating whether the current item is allowed to be downloaded.
Declaration
public bool Download { get; set; }
Property Value
| Type |
|---|
| bool |
Remarks
This property determines whether the current item has the necessary permissions to be downloaded.
Message
Gets or sets the message associated with the current item's permissions.
Declaration
public string Message { get; set; }
Property Value
| Type |
|---|
| string |
Remarks
This property returns the message associated with the current item's permissions.
Read
Gets or sets a value indicating whether the current item have read permission.
Declaration
public bool Read { get; set; }
Property Value
| Type |
|---|
| bool |
Remarks
This property determines whether the current item has the necessary read permissions.
Upload
Gets or sets a value indicating whether the current item has permission to be uploaded.
Declaration
public bool Upload { get; set; }
Property Value
| Type |
|---|
| bool |
Remarks
This property determines whether the current item has the necessary upload permissions.
UploadContentFilter
Gets or sets a value that filters which content types are eligible for upload in the SfFileManager<TValue>.
Declaration
public UploadContentFilter UploadContentFilter { get; set; }
Property Value
| Type | Description |
|---|---|
| UploadContentFilter | An UploadContentFilter specifying the allowed content types for upload. The default value is All. |
Remarks
This property determines which items are allowed to be uploaded based on their type and your application's validation rules. Items that do not satisfy the configured filter are rejected before the upload begins.
Typical usage scenarios include restricting uploads to files only, folders only by the application logic.
Allowed values include (implementation may vary):
- All — No filtering; both files and folders are allowed.
- FilesOnly — Only files are allowed.
- FoldersOnly — Only folders are allowed.
This property is not nullable. Changing the value affects subsequent uploads and does not retroactively validate already queued uploads.
Examples
// Restrict uploads to files only
fileManager.UploadContentFilter = UploadContentFilter.FilesOnly;
// Allow both files and folders (default)
fileManager.UploadContentFilter = UploadContentFilter.All;
Write
Gets or sets a value indicating whether the current item have write permission.
Declaration
public bool Write { get; set; }
Property Value
| Type |
|---|
| bool |
Remarks
This property determines whether the current item has the necessary write permissions.
WriteContents
Gets or sets a value indicating whether the current item have WriteContents permission.
Declaration
public bool WriteContents { get; set; }
Property Value
| Type |
|---|
| bool |
Remarks
This property determines whether the current item has the necessary write permissions.