WordPress plugin to sideload files directly from Dropbox.
Dropbox Sideload allows the backend user to select a file and sideload it directly from Dropbox. This allows a file that resides in Dropbox to be addedd to the Media Library without having first to be downloaded locally and then uploaded to the WordPress site.
Please see Installing Plugins in the WordPress Codex for general installation instructions.
The plugin uses the Dropbox Chooser API to select the file from a Dropbox folder. This API requires the user to have an API key. Go to the Dropbox Developers site to create a Drop-in app and receive an API key (requires a Dropbox account). Only one API key is needed generated by one account. However, once the API key is set, any Dropbox account can be used to sideload files.
- Go to
Settings > Dropbox Sideload Options
and enter your Dropbox API key. - If you desire to remiain logged in after choosing a file, check the corresponding box. If unchecked, the Dropbox acount used will be logged out after selecting the file.
- To sideload a file, go to
Media > Dropbox Sideload
from the Admin menu or in the post editing screen click theAdd Media
button and go to theDropbox Sideload
tab. - Click the
Choose from Dropbox
button. A Dropbox file selection window will pop up. If you are not logged into Dropbox, enter your credentials. Select the file and pressChoose
. - Press the `Sideload button. It might take some time to sideload the file. During this time no progress is shown.
Once the sideloading is complete, the file is in the Media Library. If using the Add Media
dialog, click on the Insert Media
tab and select the file.
Sideloading depends heavily on the server capabilities. Some server configurations will not be able to sideload the requested file. This is not an issue of the plugin, but of the server environment. When an error occurs during sideloading, the user is notified. The error will also be logged to the error log, if enabled in the WordPress configuration. Some common types of errors include:
- cURL is not properly installed or configured
- improper PHP upload settings (i.e., file too big)
- script timeout during upload (i.e., file too big so it takes too long)
- invalid or incorrect SSL certificates for cURL access (Dropbox file URL is an https URL)
- The API key allows Dropbox Sideload to use the Dropbox Chooser Drop-in to select the file. This retreives the download URL of the selected file in the same way one can share the file directly from Dropbox. The API key DOES NOT provide access to any other file within a Dropbox account other than the one selected by the user. The URL for the selected file is valid only for four hours.
- If a user is logged into the Dropbox site on the browser being used to access the WordPress site, that Dropbox account will automatically be used for sideloading. Depending on the browsing environment (e.g., public computer), this can be a potential security issue with unauthorized access to Dropbox (i.e., the Dropbox user is different than the WordPress user). For this reason, Dropbox Sideload will automatically log out the current Dropbox user after the file selection is made. This way, another user on the same browser cannot access the files. If you would rather remain logged in, please change the appropriate setting.
- 0.1 - Initial version
- 0.2 - Get filename from Dropbox.
- 0.4 - Name change
- 0.75 - New UI
- 0.8 - Clean up UI. Add settings page.
- 0.9 - Changed to a class object. Minor UI updates.