Attachment Field Component
The attachmentField component uploads one or more files and can optionally capture a photo. It supports extension and size limits, attachment previews, clearing, and upload callbacks.
Compact web variant
Set props.options.variant to compact for a single-row upload bar. The bar shows the size and accepted-file hints inline, retains the optional Take Photo action, and expands into a full drop target while a file is dragged anywhere over the page. Existing attachments render below the bar.
component: attachmentField
name: documents
props:
options:
variant: compact
allowMultiple: true
allowCamera: true
maxSize: 10485760
allowedExtensions:
- image/*
- application/pdf
variant accepts default (the existing full upload area) or compact. The compact variant is currently a web presentation option; mobile file and camera behavior is unchanged.