File upload
The File upload step lets the customer attach their prescription (photo or PDF) instead of typing the values by hand. Great as an alternative to the Graduation step or alongside it.
Configuration
Section titled “Configuration”- Accepted file types — comma-separated extensions, e.g.
.jpg,.png,.pdf. - Max size (MB) — file weight limit.
Dropzone
Section titled “Dropzone”All text is editable: the dropzone main text, the secondary hint text, the browse button, and the selected-file state texts (Change file / Remove file).
Validation
Section titled “Validation”Customizable messages for:
- File required — when the step is required and nothing is attached.
- File too large — use
{maxSize}as a placeholder. - Invalid file type — use
{types}as a placeholder.
In the summary
Section titled “In the summary”You can set the chip label that represents the uploaded file in the selection carousel and the summary.