Dropbox is one of the best tool for backing up files and synchronize them between computers. But Dropbox can be utilize in various fields. It has a wide rage of usability. We shall discuss all about how to get the maximum output from Dropbox sequentially. But today I’ll introduce an amazing feature of Dropbox. You can use Dropbox to allow your reader to upload any files from one of your website page.
Tip: Send or Upload Email Attachments to your Dropbox
Generally, anyone can upload to your Dropbox account if he knows your Dropbox user name and password. But is it possible anonymously upload files to your Dropbox? Not at all!
Our workaround is to create a php script to make a browser up-loader, associated with the Dropbox account. Just confirm that your server supports PHP. After that any one can upload files by visiting the page. You can also set a password to prevent strangers to upload at your Dropbox.
Uploader Demo
To upload any file from you computer, browse it by clicking on the “Browse” button, put the password (our password is default) and click on “Upload the file to my Dropbox” button. your file will be uploaded in our Dropbox account.
How to allow your blog readers to upload files to your Dropbox account
Create the folder in your Dropbox account to allow your readers or friend to upload files
Log-in to you Dropbox account and create a folder there.
Now follow the steps below.
1. Download the script with the instructions.
2. Extract the RAR file. You will find there two files index.php and DropboxUploader.php.
3. Now open the index.php file with any HTML editor or simply notepad.
4. Find for the line (27) $passw = "default"; //change this to a password of your choice
and change the password if you want or keep it as it is.
5. Find out the line (52) $uploader = new DropboxUploader('you@yourmail.com', 'password');// enter dropbox credentials.
Enter your Dropbox credentials.
6. Now go to the line (75) containing
<input style="display:none" type="text" name="dest" value="upload" />.
Enter the name of the folder of your Dropbox account (created earlier) where you want to allow your readers to upload files.
7. Save that index.php file.
8. Create a folder in your website directory. Upload both the files index.php and DropboxUploader.php there.
Now you are done. Every one who knows the url of that directory (and also the password) can upload files to your Dropbox account.
How to utilize Dropbox uploader
1. If you accept guest articles then you can use the Dropbox uploader to let the author to upload their articles in various file format.
2. Your blog readers can upload pictures, project to share them with other readers.
3. Some one can send you some ideas.
What about your opinion? Please drop them at the comment area.
[Thanks Amit]
It can be dangerous as well (anonymous user uploading something) isn’t it?
No Sahil. There is nothing to worry. You are not using any data base of your site and not uploading those files in your hosting server. You are just using your server to run the php script that will upload the files at Dropbox. And Dropbox has been launched to upload files. So they will care about that if any thing suspicious has been found.
I’m trying you great script, but keep getting this error:
Error: Cannot execute request: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
I’m unable to locate where it fails, so… any ideas?
@Marius Tufte: Frankly, I did not tried to do that as thinks might go more complicated. However, let me know if you get any clue about that. Thanks for your words.
Hi I’m trying to use this script which is a great idea. Thanks. But i’m having the following error:
Error: Cannot extract token! (form action=/login)
any idea why?
thanks
Hi I’m trying to use this script which is a great idea. Thanks. But i’m having the following error:
Error: Cannot extract token! (form action=/login). can you please help me how I can solve it?
@Charles: It’s because Dropbox changed something with their last update. I’ve been struggling with the same problem. I just figured it out. Visit dropbox.kingofcomedy.de and download du_v9. Use the DropboxUploader from v9, but use the index-file from this website. =)
The above script was running fine till date. But there is some problem now with the file upload. After running the code I am getting “Error: Upload failed!”. Please help and let me know what the problem is?
There is no issue of permission, the code was running fine but suddenly stopped working.
Thank you for sharing the problem. Please allow us to investigate on the issue and will reply soon.
Please reply to the issue of Dropbox uploader.
After running the code I am getting “Error: Upload failed!”. Please help and let me know what the problem is?
Please reply to the issue of Dropbox uploader.
We’re still investigating the issue. Hope, we’ll come back to you soon. Thanks for the patience.
Hello,
Script was working, but now getting the following error:
Error: Cannot extract token! (form action=/login)
The login/password info is fine so not sure why the error.
Thanks.
Hi I’m trying to use this script which is a great idea. Thanks. But i’m having the following error:
Error: Cannot extract token! (form action=/login)
any idea why?
thanks
hello, Please reply to the issue of Dropbox uploader. Please help me. Its very urgent for me please.
Can you give the link of the page?
You can get an updated version of the uploader.php from here: https://github.com/jakajancar/DropboxUploader/blob/master/DropboxUploader.php
Dose not work! lost of time wankers!
I am having the same problem with the script. getting this error:
Error: Cannot extract login CSRF token.
So close…