Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxUpload.UploadAllFiles() Method

In This Article

Uploads all files displayed in the Upload component except for cancelled ones.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public void UploadAllFiles()

#Remarks

Use the UploadAllFiles method to upload all files displayed in the Upload component except for files whose upload process was cancelled.

Uploaded files include items added in OnButtonClick mode and files whose upload process was paused.

The following code snippet allows users to upload multiple files, enables the OnButtonClick upload mode and displays a button that uploads all displayed files on click.

Razor
<DxUpload UploadMode=UploadMode.OnButtonClick 
          AllowMultiFileUpload="true"
          @ref="MyUpload"  >
</DxUpload>

<DxButton Text="Upload All Files" Click=OnButtonClick />

@code {
    DxUpload MyUpload { get; set; }

    void OnButtonClick(){
        MyUpload.UploadAllFiles();
    }
}  

To upload the specified file or multiple files, use the UploadFile or UploadFiles method, respectively.

See Also