Skip to content

Commit d90e197

Browse files
committed
chore(docs): Add more info on how to change file upload
1 parent 6d5586a commit d90e197

File tree

1 file changed

+9
-8
lines changed
  • packages/module/patternfly-docs/content/extensions/virtual-assistant/examples/Messages

1 file changed

+9
-8
lines changed

packages/module/patternfly-docs/content/extensions/virtual-assistant/examples/Messages/Messages.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@ id: Messages
1010
source: react
1111
# If you use typescript, the name of the interface to display props for
1212
# These are found through the sourceProps function provided in patternfly-docs.source.js
13-
propComponents: [
14-
'AttachMenu',
15-
'AttachmentEdit',
16-
'FileDetails',
17-
'FileDetailsLabel',
18-
'FileDropZone',
13+
propComponents:
14+
[
15+
'AttachMenu',
16+
'AttachmentEdit',
17+
'FileDetails',
18+
'FileDetailsLabel',
19+
'FileDropZone',
1920
'PreviewAttachment',
2021
'Message',
2122
'PreviewAttachment',
2223
'ActionProps',
2324
'SourcesCardProps'
24-
]
25+
]
2526
sortValue: 3
2627
---
2728

@@ -122,7 +123,7 @@ If a `displayMode` is not passed to `<PreviewAttachment>` or `<AttachmentEdit>`,
122123

123124
```
124125

125-
We are using [react-dropzone](https://react-dropzone.js.org) for opening the file dialog and handling drag and drop. It does not process files or provide any way to make HTTP requests to a server. If you need this, [react-dropzone](https://react-dropzone.js.org) suggests [filepond](https://pqina.nl/filepond/) or [uppy.io.](https://uppy.io/)
126+
We are using [react-dropzone](https://react-dropzone.js.org) for opening the file dialog and handling drag and drop. It does not process files or provide any way to make HTTP requests to a server. If you need this, [react-dropzone](https://react-dropzone.js.org) suggests [filepond](https://pqina.nl/filepond/) or [uppy.io.](https://uppy.io/). To handle edge cases, like restricting the number or size of files, you can pass a function to the `handleAttach` prop on `MessageBar` or `onFileDrop` prop in `FileDropZone.`
126127

127128
### Attachment label
128129

0 commit comments

Comments
 (0)