New to Telerik UI for BlazorStart a free 30-day trial

Provides event data for upload and remove events. Use to customize request headers, add extra data, or cancel the operation. Used in OnUpload and OnRemove.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class UploadEventArgs : UploadCancelableEventArgs

Inheritance: objectUploadEventArgsBaseUploadCancelableEventArgsUploadEventArgs

Inherited Members UploadCancelableEventArgs.IsCancelled

Constructors

C#
public UploadEventArgs()

Properties

Additional data to send with the upload or remove request. Example: RequestData["UserId"] = 123.

C#
public Dictionary<string, object> RequestData { get; set; }

Custom headers to send with the upload or remove request. Example: add authentication token: RequestHeaders["Authorization"] = "Bearer ...".

C#
public Dictionary<string, object> RequestHeaders { get; set; }