Skip to content

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.

  • Accepted file types — comma-separated extensions, e.g. .jpg,.png,.pdf.
  • Max size (MB) — file weight limit.

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).

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.

You can set the chip label that represents the uploaded file in the selection carousel and the summary.