Answer:
We showed the spinner once uploading has been started and stopped the spinner in the success event. Refer to the below code.
<SfUploader AutoUpload="false">
<UploaderEvents ValueChange="OnChange" BeforeUpload="onUploading" Success="onSuccess">UploaderEvents>
<SfSpinner @bind-Visible="@VisibleProperty">
SfSpinner>
SfUploader>
@code {
private bool VisibleProperty { get; set; } = false;
public void onUploading(BeforeUploadEventArgs e)
{
VisibleProperty
= true;
}
public void onSuccess(SuccessEventArgs
e)
{
VisibleProperty
= false;
}
} |
Find the sample to show the progress indicator while uploading Files from here.