File Upload

Compare surfaces and exercise progress, error, reject, and Formily validation outside docs cards.

Surfaces

Click or drag files to this area

Support for images and PDF. Max size is enforced client-side when set.

Click anywhere in the dashed area — whole zone is the trigger.

Drop files to attach

Fully custom children — Ant Dragger override model

dropzoneContent replaces icon + title + hint; zone click still opens the dialog.

Click or drag files to this area

Zone is drop-only — use Select files (Mantine openRef pattern).

  • mountain.jpg
  • lake.jpg
  • forest.jpg
    Uploading…

Ant Pictures Wall — tile grid + add tile; hover for preview/remove.

Single circular avatar — defaults to maxCount=1.

Lifecycle & gates

Four-second simulated upload — watch the progress bar.

Upload fails after a short delay; use retry on the row.

Only two files allowed — a third selection is rejected inline.

PNG only, max 1 KB — try a JPEG or a larger file for the inline alert.

Formily embed

Required — at least one finished upload. In-progress files do not count.