Trevixal API
    Preparing search index...

    Interface FetchStorageOptions

    interface FetchStorageOptions {
        deleteEndpoint?: string;
        endpoint: string;
        fieldName?: string;
        fields?: Readonly<Record<string, string>>;
        headers?: Readonly<Record<string, string>>;
        parseResponse?: (body: unknown) => UploadResult;
    }
    Index
    deleteEndpoint?: string

    Endpoint for deletes; receives { key } as JSON.

    endpoint: string

    Endpoint receiving the multipart POST.

    fieldName?: string

    Form field name for the file; defaults to "file".

    fields?: Readonly<Record<string, string>>

    Extra form fields (CSRF tokens, folder ids…).

    headers?: Readonly<Record<string, string>>
    parseResponse?: (body: unknown) => UploadResult

    Map your API's response body to an UploadResult.