View as Markdown

API reference: @salmonui/inputs/file-upload

UploadTransporttype

import type { UploadTransport } from '@salmonui/inputs/file-upload';
type UploadTransport = (file: File, context: UploadContext) => Promise<unknown>;

The transport: resolves when the server accepted the file.