Skip to content

Form Field: File Upload

Type: file

Input for uploading files.

javascript
{
  id: 'file_upload',
  type: 'file',
  label: 'Upload File',
  accept: '.jpg,.png,.pdf', // Accepted file types
  multiple: false, // Allow multiple files
  required: false
}
PropertyTypeDescription
acceptstringComma-separated list of allowed file types (e.g., '.jpg,.png').
multiplebooleanIf true, allows the user to select multiple files.