File Upload
Allows users to upload a file.
Allows users to upload a file.
| Field | Value |
|---|
| Name | xp/form-field-file |
| Title | File Upload |
| Category | xpac-form-generic-field |
| API version | 3 |
| Keywords | xpac, form, field, file, upload |
| Package | forms |
| Metadata file | dist/packages/forms/blocks/file/block.json |
| Feature | Value |
|---|
className | Disabled |
| Name | Type | Default | Source/Enum |
|---|
additionalAttributes | object | {} | — |
description | string | "" | source html; selector .xp-block-form-field__description |
id | string | "" | — |
label | string | "Untitled" | — |
labelVisibility | string | "visible" | enum "visible", "hidden" |
maxFilesCount | string | "" | — |
maxUploadSize | object | {"size":"","unit":"b"} | — |
multiple | boolean | false | — |
name | string | "" | — |
rules | object | {"required":{"value":false,"message":""}} | — |
selectedTypes | array | [] | — |