Skip to content

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.

ParameterTypeDescription
optionsDropboxProviderOptionsOptional API base URL overrides and fetch implementation.

ProviderFactory

Provider factory suitable for createTransferClient({ providers: [...] }).

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" },
},
},
});