API reference
@salmonui/inputs/file-upload/xhr
4 exported symbols: 1 function, 1 class and 2 interfaces. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/inputs/file-upload/xhr';Functions
createXhrUploaderCreates an upload transport: <FileUpload upload={createXhrUploader({ url: '/api/files' })} />. Resolves with { status, body } on 2xx, rejects with an XhrUpload…
Classes
XhrUploadErrorRejection of a non-2xx response, or of a network failure (status 0).
Interfaces
XhrUploadResultWhat the transport resolves with: the response status and body text.XhrUploaderOptions