File

The File field allows the user to upload files that supports them.

file-filter

Attributes

AttributesTypeRequiredDescription
idstringRequiredRequired. Unique ID identifying the field. It will be used as meta_key. Must be different from all other field IDs.
titlestringRequiredDisplays title of the option.
subtitlestringOptionalSubtitle display of the option, situated beneath the title.
descstringOptionalDescription of the option, appearing beneath the field control.
typestringRequiredValue identifying the field type. For File field here we set value file
defaultstringOptionalDefault ID file for example in the File field
lib_filterstringRequiredFilter files from library as file formatting such as pdf file, image, document…

Example Declaration