PHP Dropbox Uploader can be used to add a file upload form to your website which uploads files straight to your Dropbox.
The following code will upload a file to the specified Dropbox:
require 'DropboxUploader.php'; $uploader = new DropboxUploader('[DROPBOX EMAIL ADDRESS]', '[DROPBOX PASSWORD]'); $uploader->upload('file-to-be-uploaded', 'destination-folder-in-dropbox');
However, integrating it with another system will be of interest to most users. The code of the demo page contains a good example of how to integrate PHP Dropbox Uploader into a website.
- Question: It doesn’t work, HELP!
Answer: Make sure that your server or host supports PHP and that you’re using the latest version. If it still doesn’t work or if it was working before and suddenly stopped; it is possible that the Dropboxers’ changed something. Mail the author at email@example.com