Skip to content

Commit 9f97c4b

Browse files
authored
983306: Re-structing the template section of File uploader.
1 parent ac4eb7c commit 9f97c4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

blazor/file-upload/template.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ The Blazor File Upload component allows for the customization of the file list i
4848
</SfUploader>
4949
```
5050

51+
{% previewsample "https://blazorplayground.syncfusion.com/embed/rZrSZOLhhmAhbeZR?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
52+
5153
## Adding a progress bar using a template
5254

5355
When using a file upload template, the default progress bar is not displayed in the UI. A progress bar can be added within the template, and its progress can be updated by reading and writing to the stream in the `ValueChange` event. The following code snippet demonstrates how to add a progress bar to a Blazor File Upload component using a custom template. The custom template includes elements to display the file name, size, progress bar, and file status.
@@ -203,4 +205,6 @@ When using a file upload template, the default progress bar is not displayed in
203205
}
204206
```
205207

208+
{% previewsample "https://blazorplayground.syncfusion.com/embed/LNLytYhhLmmEGpkj?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" %}
209+
206210
![Blazor File Upload with a custom template and progress bar](./images/blazor-template-progressbar.gif)

0 commit comments

Comments
 (0)