Class ItemsUploadEventArgs<TValue>
Provides information about the ItemsUploading event callback.
Inheritance
Namespace: Syncfusion.Blazor.FileManager
Assembly: Syncfusion.Blazor.dll
Syntax
public class ItemsUploadEventArgs<TValue> : Object
Type Parameters
Name | Description |
---|---|
TValue | Specifies the TValue of FileManager events. |
Constructors
ItemsUploadEventArgs()
Declaration
public ItemsUploadEventArgs()
Properties
Cancel
Gets or sets a value indicating whether to cancel the corresponding upload action.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | 'true' if the upload action to the server must be cancelled; otherwise 'false'. |
CustomData
Gets or sets the custom data to be sent to the server with each Http Client request.
Declaration
public Dictionary<string, object> CustomData { get; set; }
Property Value
Type |
---|
System.Collections.Generic.Dictionary<System.String, System.Object> |
Remarks
The CustomData property is used to specify custom data that should be sent to the server with each Http Client request made by the FileManager. This data can be used by the server-side code to customize the behavior of the FileManager or perform additional processing on the uploaded files. To set the custom data for the FileManager, create a new System.Collections.Generic.Dictionary<, > object and add the desired key-value pairs. Then, assign this object to the CustomData property of the FileManager. Note that the keys and values in the CustomData dictionary must be serializable, since they will be sent to the server as part of the Http Client request. This is applicable only when using FileManagerAjaxSettings
Folder
Gets the folder details within which the file or folder is to be uploaded.
Declaration
public TValue Folder { get; }
Property Value
Type | Description |
---|---|
TValue | Represents the folder details to which the new items are uploaded. |
Path
Gets the path in which the upload operation is performed.
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
System.String | Represents the relative or absolute path of the directory. |
Remarks
Users can retrieve the path of the upload operation here.