File
File upload with drag-and-drop. Supports MIME type restrictions and max file size. Shows image preview for image files.
Inputtype: fileaccepts input
Live Preview
Max 5MB
Data Properties
| Name | Type | Default | Description |
|---|---|---|---|
title | string | - | Field label |
placeholder | string | - | Upload zone text (default: 'Click to upload or drag and drop') |
required | boolean | false | Whether the field is required |
Config Options
| Name | Type | Default | Description |
|---|---|---|---|
maxFileSize | number | 10485760 | Max file size in bytes (default 10MB) |
helpText | string | - | Help text below the upload zone |
Validation Rules
| Name | Type | Default | Description |
|---|---|---|---|
allowedMimeTypes | string[] | - | Allowed MIME types (e.g. ['image/png', 'application/pdf']). Supports wildcards like 'image/*' |
customMessage | string | - | Custom error message for invalid file type |