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
Copy file name to clipboardExpand all lines: blazor/file-upload/accessibility.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ documentation: ug
9
9
10
10
# Accessibility in Blazor File Upload Component
11
11
12
-
The [Blazor Uploader](https://www.syncfusion.com/blazor-components/blazor-file-upload) component followed the accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles)that are commonly used to evaluate accessibility.
12
+
The [Blazor Uploader](https://www.syncfusion.com/blazor-components/blazor-file-upload) component adheres to accepted accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) commonly used to evaluate accessibility. The component provides ARIA-compliant structures for buttons and status updates to ensure compatibility with screen readers and assistive technologies.
13
13
14
14
The accessibility compliance for the Blazor Uploader component is outlined below.
15
15
@@ -32,26 +32,26 @@ The accessibility compliance for the Blazor Uploader component is outlined below
32
32
</style>
33
33
<div><imgsrc="https://cdn.syncfusion.com/content/images/documentation/full.png"alt="Yes"> - All features of the component meet the requirement.</div>
34
34
35
-
<div><imgsrc="https://cdn.syncfusion.com/content/images/documentation/partial.png"alt="Intermediate"> - Some features of the component do not meet the requirement.</div>
35
+
<div><imgsrc="https://cdn.syncfusion.com/content/images/documentation/partial.png"alt="Intermediate"> - Some features of the component do not fully meet the requirement.</div>
36
36
37
37
<div><imgsrc="https://cdn.syncfusion.com/content/images/documentation/not-supported.png"alt="No"> - The component does not meet the requirement.</div>
38
38
39
39
## Keyboard interaction
40
40
41
-
The Blazor Uploader component characterized with complete ARIA accessibility support that helps to be accessible by on-screen readers and other assistive technology devices.
41
+
The Blazor Uploader component includes complete ARIA support for operation with screen readers and other assistive technologies. Focus moves predictably through interactive elements such as the browse button, file list items, and action buttons (remove, retry, and clear). Status updates (for example, upload progress and error messages) are exposed to assistive technologies.
42
42
43
-
The following are the standard keys that works on uploader component:
43
+
The following are the standard keys that work in the Uploader component:
44
44
45
45
| Windows | Mac | Actions |
46
46
| --- | --- | --- |
47
-
| <kbd>Tab</kbd> | <kbd>Tab</kbd> | Move focus to next element. |
| <kbd>Esc</kbd> | <kbd>Esc</kbd> | Close the file browser dialog alone and cancels the upload on drop the file. |
47
+
| <kbd>Tab</kbd> | <kbd>Tab</kbd> | Move focus to the next focusable element. |
48
+
| <kbd>Shift</kbd> + <kbd>Tab</kbd> | <kbd>⇧</kbd> + <kbd>Tab</kbd> | Move focus to the previous focusable element. |
49
+
| <kbd>Enter</kbd> | <kbd>Enter</kbd> |Invoke the action of the focused button or control. |
50
+
| <kbd>Esc</kbd> | <kbd>Esc</kbd> | Close only the file browser dialog and cancel an in-progress upload when a file is being dropped. |
51
51
52
52
## Ensuring accessibility
53
53
54
-
The Blazor Uploader component's accessibility levels are ensured through an[axe-core](https://www.npmjs.com/package/axe-core)software tool during automated testing.
54
+
The Blazor Uploader component's accessibility levels are validated using the[axe-core](https://www.npmjs.com/package/axe-core) tool during automated testing. The component supports ARIA attributes, roles, and live region announcements for status changes to improve the experience for screen reader users. Text labels, button tooltips, and status messages can be localized to support accessibility across languages and regions.
55
55
56
56
The accessibility compliance of the Uploader component is shown in the following sample. Open the [sample](https://blazor.syncfusion.com/accessibility/uploader) in a new window to evaluate the accessibility of the Uploader component with accessibility tools.
Copy file name to clipboardExpand all lines: blazor/file-upload/async.md
+17-7Lines changed: 17 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,17 +9,17 @@ documentation: ug
9
9
10
10
# Asynchronous Upload in Blazor File Upload Component
11
11
12
-
The uploader component allows you to upload the files asynchronously. The upload process requires save and remove action URL to manage the upload process in the server.
13
-
*The save action is necessary to handle the upload operation.
14
-
*The remove action is optional, one can handle the removed files from server.
12
+
The Uploader component supports asynchronous file uploads. The upload workflow uses Save and Remove action URLs to communicate with server endpoints that handle file persistence and deletion.
13
+
* The Save action is required to receive and store uploaded files on the server.
14
+
* The Remove action is optional and is used to delete files from the server.
15
15
16
16
N>The name attribute must match the name of a parameter in the POST method. For more information, refer [here](https://learn.microsoft.com/en-us/aspnet/core/mvc/models/file-uploads?view=aspnetcore-8.0#match-name-attribute-value-to-parameter-name-of-post-method). The name attribute is automatically generated from the control’s ID property. If the name attribute differs from the ID property, then you can use the htmlAttributes property to set the name attribute directly to the input element. For more information refer [here](./how-to/html-attributes).
17
17
18
18
The file can be uploaded automatically or manually. For more information, you can refer to the [Auto Upload](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfUploader.html#Syncfusion_Blazor_Inputs_SfUploader_AutoUpload) section from the documentation.
19
19
20
20
## Multiple file upload
21
21
22
-
By Default, the uploader component allows you to select and upload multiple files simultaneously. The selected files are organized in a list for every file selection until you clear it by clicking clear button that is shown in footer. You can add multiple attributes to the original input element of file by enabling the multiple file selection. The following example explains about [AllowMultiple](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfUploader.html#Syncfusion_Blazor_Inputs_SfUploader_AllowMultiple) file upload settings. The [Progressing](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.UploaderEvents.html#Syncfusion_Blazor_Inputs_UploaderEvents_Progressing) event is triggered during the file uploading process.
22
+
By default, the uploader component allows you to select and upload multiple files simultaneously. The selected files are organized in a list for every file selection until you clear it by clicking clear button that is shown in footer. You can add multiple attributes to the original input element of file by enabling the multiple file selection. The following example explains about [AllowMultiple](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfUploader.html#Syncfusion_Blazor_Inputs_SfUploader_AllowMultiple) file upload settings. The [Progressing](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.UploaderEvents.html#Syncfusion_Blazor_Inputs_UploaderEvents_Progressing) event is triggered during the file uploading process.
23
23
24
24
### With server-side API endpoint
25
25
@@ -42,6 +42,8 @@ By Default, the uploader component allows you to select and upload multiple file
42
42
```
43
43
### Without server-side API endpoint
44
44
45
+
The following pattern processes selected files without calling server endpoints. This approach writes files directly from the application process and is suitable only for controlled or sample scenarios. In production, validate file types and sizes, generate unique file names, and write to a dedicated, secure directory.
46
+
45
47
```cshtml
46
48
@using Syncfusion.Blazor.Inputs
47
49
<SfUploader ID="UploadFiles">
@@ -74,9 +76,9 @@ By Default, the uploader component allows you to select and upload multiple file
74
76
75
77
## Single file upload
76
78
77
-
You can select and upload a single file by disabling the [AllowMultiple](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfUploader.html#Syncfusion_Blazor_Inputs_SfUploader_AllowMultiple) file selection property. The file list item is removed for every selection and it always maintain a single file to upload. You can remove multiple attributes from the original input element of file by enabling the single file upload property.
79
+
Select and upload a single file by disabling the [AllowMultiple](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfUploader.html#Syncfusion_Blazor_Inputs_SfUploader_AllowMultiple) file selection property. The file list item is removed for every selection and it always maintain a single file to upload. You can remove multiple attributes from the original input element of file by enabling the single file upload property.
78
80
79
-
The following example explains about single file upload settings.
81
+
The following example demonstrates single file upload settings.
80
82
81
83
### With server-side API endpoint
82
84
@@ -93,6 +95,8 @@ The following example explains about single file upload settings.
93
95
94
96
### Without server-side API endpoint
95
97
98
+
Use this approach for local processing only (e.g., demos). In production, validate inputs, limit file size, and sanitize file names and paths.
99
+
96
100
```cshtml
97
101
@using Syncfusion.Blazor.Inputs
98
102
<SfUploader ID="UploadFiles" AllowMultiple=false>
@@ -144,6 +148,8 @@ By default, the uploader processes the files to upload once the files are select
144
148
```
145
149
### Without server-side API endpoint
146
150
151
+
This example shows manual upload without calling backend endpoints. Ensure proper validation and storage practices when adapting for real applications.
@@ -198,6 +204,8 @@ By default, the uploader component process multiple files to upload simultaneous
198
204
199
205
### Without server-side API endpoint
200
206
207
+
This example uploads files sequentially without calling backend endpoints. Apply size limits, validate file types, and handle errors when adapting for production.
@@ -252,6 +260,8 @@ The uploader component allows you to pre-load the list of files that are uploade
252
260
253
261
### Without server-side API endpoint
254
262
263
+
This example shows how to render preloaded files without server endpoints. In practical scenarios, ensure that preloaded entries accurately reflect files available on the server and that removal operations are handled securely.
264
+
255
265
```cshtml
256
266
@using Syncfusion.Blazor.Inputs
257
267
<SfUploader ID="UploadFiles" AutoUpload=false>
@@ -288,4 +298,4 @@ The uploader component allows you to pre-load the list of files that are uploade
288
298
289
299
## See Also
290
300
291
-
*[Upload files to Database in Blazor](https://github.com/SyncfusionExamples/how-to-upload-files-to-database-in-blazor)
301
+
*[Upload files to Database in Blazor](https://github.com/SyncfusionExamples/how-to-upload-files-to-database-in-blazor)
0 commit comments