Skip to content

File

Display type

  • file

Config properties

NameValueDescription
acceptstring. e.g: “image/jpeg,image/png”Specifies file types to be supported for uploading
filePreviewbooleanSpecifies whether to display or hide image in the device
multiplebooleanSpecifies whether to allow selection of multiple files at once
blobbooleanSpecifies whether to allow binary/base64 data of the file while performing upload

Properties

NameDescription
displayNameLabel to display on the field

Example schema

{
"fields": [{
"name": "upload-photos",
"meta": {
"config": {
"accept": "image/jpeg,image/png",
"filePreview": true,
"multiple": true,
"blob": true
},
"displayType": "file",
"displayName": "Upload photos"
}
}]
}