Overview & Purpose
Powerful Dropbox features with powerful network effects yield business and IT benefits. Dropbox for businesses reduces infrastructure cost and management, therefore giving better control over your company data. It is highly recommended for businesses to integrate the best storage solution.
Note: The Dropbox feature works only for the SSL verified websites. If your website does not hold an SSL Certificate then, it is recommended to get the SSL certification.
How to integrate
Read the below systematic guide to integrate Dropbox in your OPS Store -
1. Sign in or create a new Dropbox account from Admin Panel
- Login into your Dropbox account with your existing credentials or sign up with Google/create a new Dropbox account:
2. Create Dropbox Platform App
Now, go to the Developer's console for creating a new application:
- Choose an API: choose the type of API for apps that you need access to.
- Choose the type of access you need: choose App Folder.
- Name your app: Enter a name for your new app and click on the Create app button.
- This will create a DROPBOX API with access to the App Folder.
3. Get App Key and Secret ID
Generate App Key and Secret ID
- After you created an app, the next screen will generate an App Key as well as App Secret Key.
- To generate the access token click on the Generate Access Token button.
- In the Redirect URIs field, add the URL in the below-given format: https://yourdomain.com/admin/configuration_external_service_action.php
Note: This access token can be used to access your account (Default - firstname.lastname@example.org) via the API. Do not share your access token with anyone.
After the app key and secret ID, it is time to set permissions. Set the permissions as displayed in the below image:
4. Configuration in Admin Panel
To configure the Dropbox in the OnPrintShop admin panel, follow the below steps:
- Navigate to Admin >> Store Configuration >> External Service Settings >> Cloud Storage Tab.
- Click on the Edit icon against the Dropbox Storage:
- Enter the App Key, App Secret Code, and Access token which you copied in the above steps.
- After adding the Secret Token, click on the Generate link, if you registering for the first time.
- Give a name to the directory where the user’s file will be uploaded
- Once done with filling in all the details, Save the changes.
5. Enable Cloud File Upload
To allow your customers to upload files directly into your Dropbox Cloud storage, you will have to enable the "Allow Cloud File Upload" option for a product from the Product section.
You can enable this from Admin >> Products >> Product >> ‘Action’ dropdown of a particular product >> Settings >> ‘Upload’ Tab >> Allow Cloud File Upload >> Select ‘Both’ option:
After enabling this option, your customers will see an option to upload large files on the Storefront:
6. Manage Files
On the Dropbox home page, the admin will be able to view all the files uploaded by their customers.
- Click on the Apps folder and then, select the app created by you. In this example, we have our app name as OnPrintShopTest:
- Click on your app folder.
- From the Orders folder, you can click and download the Artwork files uploaded by the customers. For every order as you can see a folder is already created as the same name as Order ID:
Note: Advise your customer to not upload files larger than 150 MB in dropbox.