Examples
Basic
Drop zone with title, separator, Upload button, and accepted-types info. Drag a file over it —
pf-m-drag-over applies live (covers PF's frozen Drag over snapshot).
Horizontal
pf-m-horizontal — title and button side-by-side; live drag-over covers PF's frozen
Horizontal drag over snapshot.
File upload status
Three in-flight uploads behind a collapsed expandable toggle — expand it, and close buttons remove items with the count following.
File upload status expanded
The status section starting expanded — progress bars and removable items visible.
Horizontal file upload status expanded
The horizontal variant with the status section starting expanded.
Rejected file handling
Only JPEG, Doc, PDF and PNG are accepted — any other type opens a warning modal naming the rejected files.
Documentation
Multiple file upload props
Parameters accepted by
{#include components/forms/multiple-file-upload ... /}.
| Name | Type | Description |
|---|---|---|
* id
|
String | DOM id. |
horizontal
|
boolean |
Adds pf-m-horizontal.
|
slot content
|
Qute block | __main + __title + __upload internals. |
Usage
Wire it. Add a hidden <input type="file" multiple> and trigger
from the Upload button. Listen for dragover / drop on the
container for drag-to-upload.
HTMX uploads. Use hx-encoding="multipart/form-data" +
hx-post for streaming uploads with progress feedback via SSE or HTMX swap.