File
This field is used to upload a file in the entry. It has a feature called sizeLimitMb to limit the size of the uploaded file.
{"type": "file","id": "file","label": "File","showInTable": true,"isRequired": true,"accept": ".docx","sizeLimitMb": 5}
The above example allows the user to enter a word document file type (.docx) of maximum size - 5 MegaBytes.
Field Attributes
Name | Type | Description |
---|---|---|
id | string | Assigns a name for the given field on the backend. This name can be used to refer this field in another field |
label | string | Adds a label to the given field |
isRequired | boolean | Makes a field mandatory |
showInTable | boolean | Displays the field in a table after saving the entry |
accept | string | Indicates the acceptable file types to the user |
sizeLimitMb | number | Limits the size of the uploaded file |