Skip to main content

FileUploadStartEventArgs.RequestHeaders Property

Specifies the upload request’s headers.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor


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

Property Value

Type Description
Dictionary<String, Object>

A dictionary that contains request headers.


Handle the FileUploadStart event to control file upload before it is started. Use the event argument’s RequestHeaders and RequestData properties to specify headers and custom data for the upload request.

The following snippet adds an authentication token and username to the request and gets their values in the server-side controller:

<DxUpload Name="myFile" UploadUrl="https://localhost:10000/api/Upload/Upload/" 

@code {
    void OnFileUploadStart(FileUploadStartEventArgs e) {
        e.RequestHeaders.Add("AuthHeader", "MySecretToken");
        e.RequestData.Add("Username", "MyUsername");
See Also