Skip to main content

DxUpload.RemoveAllFiles() Method

Removes all files from the file list.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public void RemoveAllFiles()

Remarks

The following code snippet allows users to upload multiple files and displays a button that removes all displayed files from the file list on click.

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

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

@code {
    DxUpload MyUpload { get; set; }

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

Upload - Remove All Files

To remove the specified file or multiple files from the file list, use the RemoveFile or RemoveFiles method, respectively.

See Also