Dropbox
You can add your existing Dropbox source as a datasource in PixelBin. This allows you to use PixelBin's real-time file delivery and transformation features on all existing files stored in the Dropbox account.
The following tutorial will help you create an Access Token that will allow PixelBin to access the files stored in your Dropbox account.
Setting up Dropbox
In case you find the following instructions invalid/outdated, you can refer to Dropbox's official instructions on this page.
- Sign in to your Dropbox account through the portal Dropbox login.
- Go to Apps.
- Click on "Create app". Next,
- In Choose an API section, select
Scoped access
. - In Choose access type section, select
App folder
orFull Dropbox
. - In Name your app section, enter an appropriate name.
- Click on "Create app".
- In Choose an API section, select
- Click on Permissions tab. Next,
- Select
files.content.read
scope. It will also automatically selectfiles.metadata.read
scope. - Click on "Submit"
- Select
- Click on Settings tab. Next,
- Note down the App key and App secret values.
- In OAuth 2 section, set Redirect URIs to
https://api.pixelbin.io/service/webhook/transformation/v1.0/datasources/dropbox/auth
- Click on "Add".
- For Allow public clients (Implicit Grant & PKCE), select
Disallow
from the dropdown menu.
Refer Dropbox developers guide for more information.
Configure Datasource
We have now created an access token for PixelBin and granted it the read permission for your dropbox, which means that PixelBin can do nothing more than just read files. Now, go to the create datasource form,
- After entering basic details for the datasource, choose Dropbox from the set of datasource types.
- Enter the app key and app secret you copied.
- Click on Save.
- You will be redirected to the Dropbox OAuth2 authorization page. Click on Continue.
- Then you will be redirected to your app page. Click on Allow.
- You will be redirected to the main page. Your dropbox datasource is now configured.
We do not start copying files from your storage as soon as you add the datasource. Instead, we will fetch the particular file when you request it through the PixelBin URL endpoint. The files accessed from this origin will not appear in your Storage library.