Class FileManagerUploadSettings
Defines the upload settings for the filemanager component.
Inheritance
Namespace: Syncfusion.Blazor.FileManager
Assembly: Syncfusion.Blazor.dll
Syntax
public class FileManagerUploadSettings : OwningComponentBase
Constructors
FileManagerUploadSettings()
Declaration
public FileManagerUploadSettings()
Properties
AllowedExtensions
Specifies the extensions of the file types allowed in the file manager component and pass the extensions with comma separators. For example, if you want to upload specific image files, pass allowedExtensions as ".jpg,.png".
Declaration
public string AllowedExtensions { get; set; }
Property Value
Type | Description |
---|---|
System.String |
AutoClose
Defines whether to close the upload dialog after uploading all the files.
Declaration
public bool AutoClose { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
AutoUpload
By default, the FileManager component initiates automatic upload when the files are added in upload queue. If you want to manipulate the files before uploading to server, disable the autoUpload property. The buttons "upload" and "clear" will be hided from file list when the autoUpload property is true.
Declaration
public bool AutoUpload { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DirectoryUpload
Gets or sets a boolean value that indicates whether the directory (folder) can be browsed and uploaded in the FileManager component.
Declaration
public bool DirectoryUpload { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Enabling directory upload allows users to upload directories (folders) by selecting the directory upload option in the toolbar or by dragging and dropping directories into the file manager. When directories are uploaded, all files and subdirectories within them are also uploaded. Note that directory (folder) upload is only supported by the following file system providers:
- Physical provider
- NodeJS provider
- Azure provider
- Amazon S3 provider
MaxFileSize
Specifies the maximum allowed file size to be uploaded in bytes. The property is used to make sure that you cannot upload too large files.
Declaration
public double MaxFileSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
MinFileSize
Specifies the minimum file size to be uploaded in bytes. The property is used to make sure that you cannot upload empty files and small files.
Declaration
public double MinFileSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
Dispose(Boolean)
Dispose unmanaged resources in the component.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Boolean value to dispose the object. |
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Task. |