| 1 |
--- |
| 2 |
id: Multiple file upload |
| 3 |
section: components |
| 4 |
subsection: file-upload |
| 5 |
--- |
| 6 |
import { useEffect, useState } from 'react'; |
| 7 |
import { Modal as ModalDeprecated, ModalVariant as ModalVariantDeprecated } from '@patternfly/react-core/deprecated'; |
| 8 |
import UploadIcon from '@patternfly/react-icons/dist/esm/icons/upload-icon'; |
| 9 |
|
| 10 |
## Demos |
| 11 |
|
| 12 |
### Rejected file handling |
| 13 |
|
| 14 |
This demo shows how to add a modal to alert users that the file(s) they attempted to drop was of a non-acceptable type. |
| 15 |
|
| 16 |
```ts file="./examples/MultipleFileUpload/MultipleFileUploadRejectedFile.tsx" |
| 17 |
|
| 18 |
``` |