|
@@ -10,7 +10,7 @@ The Provider plugins help you connect to your accounts with remote file provider
|
|
|
|
|
|
As of now, the supported providers are [**Dropbox**](/docs/dropbox), [**GoogleDrive**](/docs/google-drive), [**Instagram**](/docs/instagram), and [**URL**](/docs/url).
|
|
As of now, the supported providers are [**Dropbox**](/docs/dropbox), [**GoogleDrive**](/docs/google-drive), [**Instagram**](/docs/instagram), and [**URL**](/docs/url).
|
|
|
|
|
|
-Usage of the Provider plugins is not that different from any other *acquirer* plugin, except that it takes an extra option `serverUrl`, which specifies the URL to the Companion that you are running. This allows Uppy to know what server to connect to when datacenter operations are required by the provider plugin.
|
|
|
|
|
|
+Usage of the Provider plugins is not that different from any other *acquirer* plugin, except that it takes an extra option `companionUrl`, which specifies the URL to the Companion that you are running. This allows Uppy to know what server to connect to when datacenter operations are required by the provider plugin.
|
|
|
|
|
|
Here's a quick example:
|
|
Here's a quick example:
|
|
|
|
|
|
@@ -24,19 +24,19 @@ uppy.use(Dashboard, {
|
|
|
|
|
|
// for Google Drive
|
|
// for Google Drive
|
|
const GoogleDrive = require('@uppy/google-drive')
|
|
const GoogleDrive = require('@uppy/google-drive')
|
|
-uppy.use(GoogleDrive, {target: Dashboard, serverUrl: 'http://localhost:3020'})
|
|
|
|
|
|
+uppy.use(GoogleDrive, {target: Dashboard, companionUrl: 'http://localhost:3020'})
|
|
|
|
|
|
// for Dropbox
|
|
// for Dropbox
|
|
const Dropbox = require('@uppy/dropbox')
|
|
const Dropbox = require('@uppy/dropbox')
|
|
-uppy.use(Dropbox, {target: Dashboard, serverUrl: 'http://localhost:3020'})
|
|
|
|
|
|
+uppy.use(Dropbox, {target: Dashboard, companionUrl: 'http://localhost:3020'})
|
|
|
|
|
|
// for Instagram
|
|
// for Instagram
|
|
const Instagram = require('@uppy/instagram')
|
|
const Instagram = require('@uppy/instagram')
|
|
-uppy.use(Instagram, {target: Dashboard, serverUrl: 'http://localhost:3020'})
|
|
|
|
|
|
+uppy.use(Instagram, {target: Dashboard, companionUrl: 'http://localhost:3020'})
|
|
|
|
|
|
// for URL
|
|
// for URL
|
|
const Url = require('@uppy/url')
|
|
const Url = require('@uppy/url')
|
|
-uppy.use(Url, {target: Dashboard, serverUrl: 'http://localhost:3020'})
|
|
|
|
|
|
+uppy.use(Url, {target: Dashboard, companionUrl: 'http://localhost:3020'})
|
|
```
|
|
```
|
|
|
|
|
|
⚠️ The [Dashboard](/docs/dashboard) plugin is recommended as a universal container to all Provider plugins. It also comes with file previews, progress reporting and more. If you are using the Dashboard, it already [comes with all the nessesary styles](/docs/dashboard/#CSS) and functionality for Providers to work well.
|
|
⚠️ The [Dashboard](/docs/dashboard) plugin is recommended as a universal container to all Provider plugins. It also comes with file previews, progress reporting and more. If you are using the Dashboard, it already [comes with all the nessesary styles](/docs/dashboard/#CSS) and functionality for Providers to work well.
|