A plugin that allows for Dropbox to be the media storage for the platform.
First and foremost: If at any point you have questions, comments or concerns you can find us hanging out on twitter @getpencilblue and on our Sub-Reddit. We're always happy to help and pull requests (plugin or core) are always welcome.
Pre-requisits:
-
Create an app at: https://www.dropbox.com/developers/apps
-
Click “Dropbox API App”
-
Click “Files and Datastores”
-
Click “Yes My app only needs access to files it creates.”
-
Fill in the app name
-
Click “Create App”
-
Under “Settings” => “OAuth” click the “Generate” button
-
Copy the App Key, App Secret, and Access Token for later use
Installation:
-
Clone repo into your PencilBlue's plugins directory.
-
Edit your config.js file to configure the media provider
{
"media": {
"provider": "/plugins/dropbox-pencilblue/include/db_media_provider.js"
}
}
-
Start or restart your PB instance
-
Navigate to Manage Plugins section in PencilBlue
-
Install the dropbox-pencilblue plugin
-
Upon successful install click the Settings button for the dropbox-pencilblue plugin
-
Enter your Dropbox App Key, App Secret and Access Token
-
Click Save
You should be good to go!
NOTE: Currently there is no way to migrate data from one media provider to the other. If "uploaded" media already exists that was created from a different provider then you must delete it and upload it. You will also have to re-link any system objects that rely on that media until you can replace the content for a media object. See pencilblue/pencilblue#218