uppy/website/src/docs/dropbox.md
2018-07-05 15:49:33 +02:00

1.1 KiB

type order title permalink
docs 51 @uppy/dropbox docs/dropbox/

The Dropbox plugin lets users import files their Dropbox account.

An Uppy Server instance is required for the Dropbox plugin to work. Uppy Server handles authentication with Dropbox, downloads the files, and uploads them to the destination. This saves the user bandwidth, especially helpful if they are on a mobile connection.

const Dropbox = require('@uppy/dropbox')

uppy.use(Dropbox, {
  // Options
})

Try live!

Installation

This plugin is published as the @uppy/dropbox package.

npm install @uppy/dropbox

Options

uppy.use(Dropbox, {
  target: Dashboard,
  serverUrl: 'https://server.uppy.io/',
})

id: 'Dropbox'

A unique identifier for this plugin. Defaults to 'Dropbox'.

target: null

DOM element, CSS selector, or plugin to mount the Dropbox provider into. This should normally be the Dashboard.

serverUrl: null

URL to an Uppy Server instance.

locale: {}

Localize text that is shown to the user.

The default English strings are:

strings: {
  // TODO
}