Skip to content

Adapters

An adapter handles the actual file upload: authenticating with your backend, tracking progress, and returning a video ID when done. Every UploadProvider requires one.

Pass an UploadConfig containing your adapter to UploadProvider:

import { UploadProvider } from "@hyperserve/upload";
<UploadProvider config={config}>
{/* your upload UI */}
</UploadProvider>

The adapter is responsible for the upload itself. The library handles everything around it: queueing, concurrency, retries, and UI state.

Building for a different backend? See Custom Adapter.