A clear path from queued to received.
Cancel one transfer or retry it without restarting the other files.
Example receiver: up to 2 MiB per file. Bytes are discarded after a receipt is returned.
Up to 5 files · 2.0 MB each
Receipts last up to five minutes in this server process. They do not provide file hosting or account access.
Connect a receiver
const uploadFile = useMemo(() => createUploadHttpAdapter({
endpoint: "/api/files",
headers: () => ({"X-Workspace": workspaceId})
}), [workspaceId]);
<UploadQueue label="Files" onUploadFile={uploadFile}
concurrency={2} maxFiles={5} />The HTTP adapter sends a raw file body. Your receiver validates ownership, byte limits and request IDs, then returns a receipt with matching requestId and bytes. This example computes SHA-256 and discards the bytes.
Transfer progress comes from the browser. Sending all bytes moves a file to Processing; only a valid server acknowledgement completes it. Retry sends the whole file again with the same request ID. The example is not a resumable upload protocol.
Download the Next.js HTTP starter · Read the transport and queue contract