DxUpload.UploadAllFiles() Method
Uploads all files displayed in the Upload component except for cancelled ones.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
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.
<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