ComponentsDropzone

Dropzone

Collect files by dropping them onto a visible target or opening the native file picker.

Example

    Setup

    Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.

    Compact attachments

    Add several attachments without taking much vertical space in a form.

    Example

      Photo tray

      Collect images with a preview thumbnail for each selected file.

      Example

        Usage

        SelectionThe native file input holds the accepted files for multipart form submission. Listen for its change event after a selection, drop, or removal. A single-file field replaces the previous file. A multiple-file field adds to the selection.
        ValidationSet accept on the input and data-ilui-dropzone-max-size in bytes on the root. Validate files again when processing them on your server.