Skip to main content

File Field

type: "file"

A field where users can upload files like images, videos and more.

Additional Fields

FieldTypeDescription
defaultValueValueFile?The optional default value
multipleboolean?Allow multiple file upload
acceptstring?The accept property on the file input

Example

mobro-widget-config.json
{
"config": [
{
"name": "example",
"label": "Example",
"type": "file",
"multiple": true,
"accept": "image/*"
}
]
}