You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Template in Blazor File Upload Component | Syncfusion
4
-
description: Checkout and learn here about Template in Syncfusion Blazor File Upload component and much more details.
4
+
description: Learn how to customize the Syncfusion Blazor File Upload component's appearance using templates, including how to add a progress bar.
5
5
platform: Blazor
6
6
control: File Upload
7
7
documentation: ug
8
8
---
9
9
10
10
# Template in Blazor File Upload Component
11
11
12
-
The template in the code snippet allows for the customization of how file details are displayed in the uploader's UI. It provides flexibility to define the structure and styling of individual file elements, such as file name, size, and status. This allows to create a tailored and visually appealing file upload interface that aligns with their application's design and user experience requirements.
12
+
The Blazor File Upload component allows for the customization of the file list items by using a template. This provides the flexibility to define the structure and styling of individual file elements, such as the file name, size, and status. A custom template can create a tailored and visually appealing file upload interface that aligns with an application's design and user experience requirements.
13
13
14
14
### With server-side API endpoint
15
15
@@ -20,10 +20,12 @@ The template in the code snippet allows for the customization of how file detail
<div class="e-file-status">File Status : @context.Status</div>
45
+
</div>
42
46
</Template>
43
47
</UploaderTemplates>
44
48
</SfUploader>
45
49
```
46
50
47
-
###Adding progressbar using template
51
+
## Adding a progress bar using a template
48
52
49
-
When using the file upload template, the progress bar does not display in the UI. We can add the progress bar using template and then show the progress while reading and writing to the stream in the ValueChange event. The code snippet below demonstrates a Blazor file upload example with a progress bar using a custom template. The custom template includes elements to display the file name, size, progress bar, and file status.
53
+
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.
0 commit comments