--- id: Simple file upload section: components subsection: file-upload cssPrefix: pf-v6-c-file-upload ---## Examples ### Basic file upload ```html
``` ### With helper text ```html
Upload a CSV file
``` ### Upload complete non editable ```html
``` ### Upload complete editable ```html
``` ### Drag file hover component ```html
``` ### File upload in form with error ```html
Error: Must be a CSV file no larger than 1 KB
``` ### File upload loading ```html
``` ## Documentation ### Overview ### Usage | Class | Applied to | Outcome | | -- | -- | -- | | `.pf-v6-c-file-upload` | `
`, `
` | Initiates the file upload component. **Required**. | | `.pf-v6-c-file-upload__file-select` | `
` | Initiates the file select element. **Required** | | `.pf-v6-c-file-upload__file-details` | `
` | Initiates the file details element. **Required** | | `.pf-v6-c-file-upload__file-details-spinner` | `
` | Initiates the file details element. **Required** | | `.pf-v6-c-file-upload__helper-text` | `
` | Initiates a container for [helper text](/components/helper-text) | | `.pf-m-drag-hover` | `.pf-v6-c-file-upload` | Modifies file upload for when an element is dragged or dropped inside of its container. | | `.pf-m-loading` | `.pf-v6-c-file-upload` | Modifies file upload for the loading state. |