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
@@ -4,44 +4,162 @@ The upload component is used to choose files from any location in the local mach
4
4
5
5
## Usage
6
6
7
-
- Use the specific mode based on the application requirements
8
-
- Add some explanation text in the case that it is needed to clarify the information to the user
9
-
- By default, the drag and drop appearance is handled by the browser, in case it wants to be customized is the responsibility of the developer
10
-
- If the upload process fails, please show an error message avoiding technical or undetermined information (i.e '0x94 ERROR_PATH_BUSY') that won't be understood by the user of the application
7
+
### Do's
11
8
9
+
* Provide a meaninful label and helper text in order to help the user understand the files expected
10
+
* When displaying errors, provide feedback about the type of error using the error message
11
+
* When the upload process fails, provide useful information instead of showing an error message using technical or undetermined information (i.e '0x94 ERROR_PATH_BUSY')
12
12
13
+
### Don'ts
14
+
15
+
* Use the upload component to upload multiple files inside a modal dialog
16
+
* Use a variant with drag and drop functionality when designing for mobile devices
When the files to upload are mainly images, the preview can provide more feedback to the user rather than the name of the file, preventing errors loading content.
85
+
86
+

87
+
88
+
_File item with preview example_
89
+
90
+
## Loading content
91
+
92
+
When handling with large file sizes the file item should provide feedback to the user about the loading state. While the file is being loaded, the action to remove the file can not be performed.
Provide feedback to the users regarding the issues their files may face, or indicate that the files upload was succesfull. An alert type `success` or `error` should be placed on the top right corner of the upload container.
0 commit comments