createDropboxProviderFactory
function createDropboxProviderFactory(options?: DropboxProviderOptions): ProviderFactory;Defined in: src/providers/cloud/DropboxProvider.ts:97
Creates a Dropbox provider factory.
The bearer token is resolved per-connection from profile.password. The
profile.host field is unused; Dropbox connections are identified solely by
their token. Uploads go to /2/files/upload (single-shot); resumable upload
sessions are not yet supported.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
options | DropboxProviderOptions | Optional API base URL overrides and fetch implementation. |
Returns
Section titled “Returns”Provider factory suitable for createTransferClient({ providers: [...] }).
Example
Section titled “Example”import { createDropboxProviderFactory, createTransferClient, uploadFile } from "@zero-transfer/sdk";
const client = createTransferClient({ providers: [createDropboxProviderFactory()] });
await uploadFile({ client, localPath: "./backups/db.dump", destination: { path: "/Backups/2026-04-28/db.dump", profile: { host: "", provider: "dropbox", password: { env: "DROPBOX_ACCESS_TOKEN" }, }, },});