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: packages/documentation-site/patternfly-docs/content/design-guidelines/components/file-upload-multiple/file-upload-multiple.md
+20-8Lines changed: 20 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ section: components
4
4
subsection: file-upload
5
5
---
6
6
7
+
import '../components.css';
8
+
7
9
A file upload component is commonly found in forms, but can also live as a standalone element.
8
10
9
11
*Note: This component is for both single and multiple file upload scenarios that do not require a text preview. For a single file upload that supports text preview, see the [file upload component](/components/file-upload/simple-file-upload).*
@@ -13,7 +15,9 @@ A file upload component is commonly found in forms, but can also live as a stand
<imgsrc="./img/best-practices.png"alt="best practices for file upload"width="1145"/>
45
+
<divclass="ws-docs-content-img">
46
+
<img src="./img/best-practices.svg" alt="Best practices for file upload"/>
47
+
</div>
42
48
43
49
1.**Sizing:** Modify the drop zone to fit your context. For example, when placing the component in forms, align the width of the drop zone to the form fields.
44
50
@@ -58,23 +64,29 @@ The component can be set to restrict specific file types and sizes according to
58
64
### Upload file(s) via the Upload button
59
65
Users have the option to upload files by clicking the button inside the drop zone. Clicking on the button prompts a file selector dialog to open. Once users select 1 or more files from the dialog, the files will populate below the drop zone on the page. The file(s) may display a loading state before uploading is successfully completed.
60
66
61
-
<imgsrc="./img/upload-via-button.png"alt="file upload using the upload button"width="1145"/>
62
-
67
+
<divclass="ws-docs-content-img">
68
+
<img src="./img/upload-via-button.svg" alt="File upload using the upload button"/>
69
+
</div>
63
70
64
71
### Drag and drop file(s)
65
72
Users have the option to directly upload files by dragging and dropping them into the specified drop zone area.
66
73
67
74
When dragging files into the drop zone area, the drop zone changes color to indicate the active area. Once the cursor hits the drop zone area it changes with a preview of the file(s) users are about to upload. The style of cursor change is rendered by the user's browser.
68
75
69
-
<imgsrc="./img/upload-via-drag-drop.png"alt="file upload using drag and drop"width="1145"/>
70
-
76
+
<divclass="ws-docs-content-img">
77
+
<img src="./img/upload-via-drag-drop.svg" alt="File upload using drag and drop"/>
78
+
</div>
71
79
72
80
### Loading states
73
81
A file that is being uploaded has 3 distinct states—waiting, in progress and uploaded.
74
82
75
-
<imgsrc="./img/loading-states.png"alt="A file that is being uploaded has 3 distinct states"width="1145"/>
83
+
<divclass="ws-docs-content-img">
84
+
<img src="./img/loading-states.svg" alt="A file that is being uploaded has 3 distinct states"/>
85
+
</div>
76
86
77
87
### Validation
78
88
When a specific file cannot be uploaded successfully, the corresponding file will show an error state. Error messages should provide clear guidance to help the user resolve the error.
79
89
80
-
<imgsrc="./img/validation.png"alt="file upload with error state"width="1145"/>
90
+
<divclass="ws-docs-content-img">
91
+
<img src="./img/validation.svg" alt="file upload with error state"/>
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/file-upload-multiple/img/best-practices.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/file-upload-multiple/img/elements.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/file-upload-multiple/img/loading-states.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/file-upload-multiple/img/multi-upload-usage.svg
Copy file name to clipboardExpand all lines: packages/documentation-site/patternfly-docs/content/design-guidelines/components/file-upload-multiple/img/upload-via-button.svg
0 commit comments