File field
Data
| Key |
Type(s) |
Optional |
Description |
| name |
string |
|
The form field name, this value must be used as the input's name key |
| type |
string |
|
Different types of form fields such as text password email select range file |
| label |
string |
|
The label for the form field |
| required |
boolean |
|
Indicates if the field is required for validation |
| mimes |
array |
|
Allowed mime types |
| maxsize |
int |
|
Maximum allowed size |
Example
{
"name": "CATTACHMENTCV",
"type": "file",
"label": "CV",
"required": true,
"mimes": "doc,xls,pdf,txt,htm,html,rtf,docx,xlsx,jpg,ico,jpeg,png,eml,emlx,msg,mbx,heic,heif,odt,ods,odp",
"maxsize": 4096
}