6 August 2009
Dropbox plugin for wordpress
Filed under Wordpress
Temporarily down due to recent changes in the dropbox site.
There seems to be a demand for a wordpress plugin which can handle dropbox and there is code available to make it, but for some reason people haven’t made one yet.
Taking the available code and next to no wordpress plugin knowledge I’ve modified the code and made a plugin out of it.
It’s now been what I would consider sufficiently tested, and appears to work for most configurations.
Long story short, a special thanks to jaka.kubje.org and to individual-it.net from where the bulk of the code originates. I just made it a plugin.
There is a readme file in the archive which should explain the workings. It’s basic and simple, but if any questions come up, post a comment and I’ll gladly answer.
Changelog
010 - Added option to show file size. Added option to show date and time of last modification
009 - Fixed to work with the new dropbox url. Fixed a problem with the permalinks. Added shortcodes
008 - Switched to the new way of storing options. Might be compatible with wordpressMU. Need volunteer to find out.
007 - Security update restricting acces to plugin settings. Please update if you have a multi-user blog.
006 - suffice to say I’m embarrassed about this one but the password should no longer get messed up
005 - files with spaces in the names should no longer be truncated thanks to a delightfully simple fix.
007 - Security update restricting acces to plugin settings. Please update if you have a multi-user blog.
006 - Fixed obvious mistake in password code.
005 - Files with a space in the name now mostly work.
004 - fixed URL bug
003 - updated the dropbox connection class
002 - updated the dropbox connection class
Browser issues as noted so far:
- Chrome - like a charm
- Firefox - works
- IE8 - also woks
- Safari - works on the latest version
- Opera - haven’t tested much but seems to work
- Epiphany - untested
Click Here to Download the latest version
Demo - browsing and downloading only
Download older versions here:001,002,003
Temporarily down due to recent changes in the dropbox site.
2009-08-06 :: Andrew


28 August 2009 @ 5:41 pm
Thanks for providing this plugin Andrew.
I’ve installed it, but it isn’t clear, in the documentation, where I should enter my dropbox login information, or how I choose which folder I’d like the content to be uploaded to… Is this something I’ve just overlooked?
Thanks again.
[Reply]
Andrew Reply:
August 28th, 2009 at 5:45 pm
Hello Vince
There should be a “TDP options” menu under your options. Stands for “The dropbox Plugin”, very unimaginative I know. The login information goes there. Unless I’ve uploaded the wrong version you can choose a folder there as well.
Thanks for giving the plugin a try, hope it works well. If it doesn’t let me know and I’ll see what I can do.
[Reply]
13 September 2009 @ 4:44 am
I can’t seem to get plug-in to display files, just directories. I have tested all the php examples on dropbox’s wiki and there all no go. Any luck? Can you provide a test example? Hit me back with an email if you can, thx.
[Reply]
14 September 2009 @ 9:49 pm
Thank you much for that informational blog post.
[Reply]
15 September 2009 @ 9:08 pm
Aaron you seem to be right, I’m not exactly sure why this is, must be something on dropbox’s side. I’ll try to look into it in the next few days.
[Reply]
16 September 2009 @ 8:49 am
Thanks for your time. This is pretty huge to me. I’m hoping to use this to replace an old ASP upload script I used and is now useless since my server doesn’t support ASP. Plus, uploading files then syncing to my local machines would be very slick.
[Reply]
17 September 2009 @ 11:14 pm
Hi Andrew,
I got the option thing figured out (thanks!), and then installed the plugin. Unfortunately, I got this error when trying to upload a file to the dropbox:
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
Best,
-Vince
[Reply]
17 September 2009 @ 11:53 pm
Ok, so I figured out why I got that error on Jaka’s site. It wasn’t clear, however, where I should insert the php code he mentioned, so I put it in there and pointed to the certificate, but I don’t think it worked. The error disappeared, but the upload definitely didn’t work.
No worries if you can’t help on this, but I was just wondering if you’ve dealt with this on your server, and if so how did you install the certificiate?
[Reply]
18 September 2009 @ 10:55 am
Seems version 3 of the dropbox connection class came out when I wasn’t looking. I’ve made the update and it should work now.
[Reply]
19 September 2009 @ 9:09 am
v002 fixed the errors I was having, nice! Still not listing the files for anonymous viewing… wish the author of the Dropbox connection would update it. Is it just me?
[Reply]
23 September 2009 @ 10:18 pm
[...] Dropbox Plugin für WordPress Posted September 14, 2009 Filed under: Uncategorized | Tags: Dropbox, PHP | Es scheint ein Dropbox Plugin für WordPress zu geben: http://software.o-o.ro/dropbox-plugin-for-wordpress/ [...]
27 September 2009 @ 10:46 am
IT NOW WORKS!!!! Get the new DropboxConnection on the individual-it.net link at the top! I can see files & folders listed for anonymous viewers!! Sorry, i’m really excited…waited months for this to work!
Don’t know if the plug-in works yet, tho.
[Reply]
Andrew Reply:
September 27th, 2009 at 1:47 pm
I’ve updated the plugin and it should work now.
[Reply]
27 September 2009 @ 8:29 pm
I found a glitch, if there is a space in the FOLDER name, take the space out and it will display the files. I’m guessing something with the %20 / Space HTML conversion maybe?
[Reply]
27 September 2009 @ 11:43 pm
Yup that’s the issue. I fixed this one in the original release (or the prerelease) but forgot to reapply the modifications. It should work now.
[Reply]
28 September 2009 @ 12:29 am
Great work and congrats to see your plug-in is on WordPress’s site! OK, one last bug that is still not working right. When I try to download a file with a SPACE in it, the file gets truncated at the space and no file extension. I.E. “My Book.doc” gets saved as “My”
Tested in FF 3.5.3 & IE8 on Win7 RTM (x64). I can upload a file with a SPACE file, I can see the file with a space fine, just can’t properly download it.
[Reply]
Andrew Reply:
September 28th, 2009 at 10:11 pm
Aaron, I’ve taken the liberty of visiting your blog and tracking down the dropbox plugin. I’ve found a file named TV Wants.xlsx And results are:
Chrome had no problems
Safari much as expected turned out some odd results, haven’t updated it in ages though.
IE8 works fine
I was able to recreate the issue in Firefox 3
All this under win xp sp3
This seems to be a browser-specific issue, I’m not entirely sure what I can do about it. Are the file contents compromised or intact?
[Reply]
29 September 2009 @ 4:43 am
First off, I am very appreciative that you are taking the time to fix this issue. Second, I know you didn’t write the DropboxConnection, but again… happy you are improving it in a way that will work for everyone.
After reading what you said, it is messing up FireFox completely. I gathered some portable version of FF and IETester to help testing.
FF3 & FF3.5.3 (Win7), if I click on the “TV Wants.xlsx” link directly, for me, the filename gets cut to just show “TV”…no extension. Now if I right click, Save Link As, I get the full filename BUT the extension gets changed to .HTM
FF2 (WinXP SP3) – Same as above
Chrome (WinXP SP3) works 100% both ways - We can agree on that.
IE8 (Win7) I guess it is working too, but both ways it converts the SPACE to an underscore. TV_Wants.xlsx – Doesn’t bother me, hate IE
Safari – I’ll test it later on my Hackintosh, not concerned
Either way I download the file, the data is never corrupted, just needs to be renamed afterwards. Before applying your fix v004, my filesize was 0 bytes.
To conclude, now that we discovered this issue a little more, I want to figure out why it is acting up in FireFox. Sounds like adding some form of “type” in the link or something should fix it, at least for Right-mouse – Save link as.
~Thanks
[Reply]
Andrew Reply:
September 29th, 2009 at 6:48 pm
It turned out to be a common firefox issue with a simple fix. It seems to have worked for IE and Opera also, also the new Safari is working. I’ll test it out on epiphany when I get the chance.
Once again it should be working now.
Thank you very much Aaron for the testing. Please let me know if you find other things wrong.
[Reply]
29 September 2009 @ 9:49 pm
Couldn’t be happier! Great work. You may want to post this on Dropbox’s own Wiki. That is where I started looking for a WordPress plug-in and found many other useful add-ons.
w00t, now I can go ahead and style it.
[Reply]
1 October 2009 @ 8:27 am
There’s good info here. I did a search on the topic and found most people will agree with your blog. Keep up the good work mate!
[Reply]
2 October 2009 @ 6:53 pm
Hi
This is so good! It will help we with a big issue I had on one of my homepages with a no-computer-user friend who wants to add files to his homepage.
But.. I get the “Viewing: Error: Login unsuccessful.” message.
But as far as I can see, theres nothing wrong with my username/password.
Do I need to do anything on the dropbox-side. Or what could be wrong?
Please help!
Keep up the good work!
[Reply]
Andrew Reply:
October 2nd, 2009 at 7:10 pm
Hello Joakim.
I’ve noticed that sometimes the password gets messed up when fiddling with the settings. A fix would be to either retype your password and save the options or to type your password again when making any changes. As a general rule I don’t recommend using the upload form from the admin menu at the moment.
I’ll work to fix it sometime in the next few days, but for the moment type in your password again and let me know if it works/doesn’t work.
[Reply]
2 October 2009 @ 8:47 pm
Hi Andrew!
Thanx for taking your time to answer!
I’ve tried both. Changing pass from the cinfig page, and manually.
I even tried the original DropboxConnection with the same result. Adressing the very page (Not going through Wordpress)
I have a number in my password, so I tried changing it to “testar” (testing in Swedish) but the same result.
Could it have something to do with the “Public” folder you mentioned? I tried with a “test”-folder. But didnt know how to make i root, or did you mean simply put that folder as the on in the config?
Again, thanx for your time
[Reply]
Andrew Reply:
October 2nd, 2009 at 9:02 pm
On the demo page I’ve used the “/photos” folder. I’ve just made a quick test leaving it blank, and managed to access the public folder, so that shouldn’t be the issue.
What browser and version of wordpress are you using? Also do you happen to use any non-standard characters in your email/ password/ folder names? I’m almost sure this is a useless question, but are you sure you’ve installed the latest version of the plugin (005)?
[Reply]
3 October 2009 @ 11:22 am
Got it!
I was to quick. I manually hard-coded the email and pass in the config file before uploading it to the server.
$dbemail=get_option(’tdp_mail’);
$dbpassword=get_option(’tdp_pass’);
$dbdir = get_option(’tdp_dir’);
became
$dbemail=get_option(’joakim@ateljedigital.se’);
$dbpassword=get_option(’mypass’);
$dbdir = get_option(’Public’);
Ofc Wordpress couldn’t get THAT data from the database!
But now it works like a sharm. SUPER Thanx for your work!!!
I will soon tip about this plugin on my “10 Wordpress plugins you can’t be without” on my http://www.ateljedigital.se . it will be in swedish though (I think).
Good work!!!
[Reply]
3 October 2009 @ 11:51 am
Ok…..
next problem
I got the “list” working. But I can’t click the links.
It just says it’s not there.
I checked your demo-page. The thing that differs is this.
First ifI put my Publics folder. If you point the link to see the url in the status-bar. I dont have the hex-code after “…&w=”. You have that on your photo-demo.
So i change to my photo folder.
I get the code after the “w=” but it wont work.
http://www.tibromissionskyrka.nu/wp
Bottom right corner
I have no idea whats wrong
[Reply]
3 October 2009 @ 5:20 pm
A similar happened to me when I was testing the plugin using the preview option for the page the demo is currently on. If you place the plugin on its own page it should work. I think there’s some issue with sending the headers. I’ll look into it now.
[Reply]
4 October 2009 @ 1:24 pm
You should post some screenshots on the wordpress.com/extend page
Tnx for the plugin!
VVOR
http://www.vvor4.nl
[Reply]
Andrew Reply:
October 4th, 2009 at 1:43 pm
Thanks for the suggestion I’ll do that as soon as I have a few moments.
[Reply]
7 October 2009 @ 2:37 am
what a great site and informative posts, I will add a backlink and bookmark your site. Keep up the good work!
[Reply]
17 October 2009 @ 10:50 pm
HI, I was triying to use the pluggin but i cant get it to work right.
The upload function in the dashborad works fine, so i thing the username and password should be ok.
I am using Wordpress 2.8.
I configured the TDP just like the example, but when i create a page to display the dropbox directories it doesnt show anything.
[Reply]
Andrew Reply:
October 17th, 2009 at 10:57 pm
Hello.
Php code might be weeded out by your wordpress (it’s a default thing). You can grab a nice plugin that enables it for you here: http://bluesome.net/post/2005/08/18/50/
The next version will have a more user friendly way of adding it to your pages.
[Reply]
19 October 2009 @ 4:13 am
Hi Andrew, i installed the pluggin and it now display the file listings, but when i click on a file to download, it doesnt download the file, it just refresh the page, even when i try the save to option.
[Reply]
Andrew Reply:
October 19th, 2009 at 9:21 am
Are you trying to display it on a separate published page? If you test it in preview mode it behaves as you describe.
If that’s not it either could you link me to your blog so I can look around and try to find the issue?
[Reply]
Xavier Reply:
October 27th, 2009 at 7:58 pm
Yes it is in a separate published page, and it seems to be working right, but when click on a link, it keeps refreshing the page.
[Reply]
Andrew Reply:
October 27th, 2009 at 8:23 pm
Think I know what the problem is and I’ll make sure to fix it in the next release.
Meanwhile a workaround might be going to Settings->Permalinks in the admin menu and using any setting other then the default one.
Thanks
[Reply]
Xavier Reply:
October 27th, 2009 at 8:50 pm
I change the permalinks option, but now i ahve another problem, i think is the same than Joakim Eriksson, i cant get the code after the &w, and when i click on a link it says: “impossible w-string”
[Reply]
Andrew Reply:
October 27th, 2009 at 9:22 pm
I’m looking into it now, however I’m unable to replicate the error. The only time I remember getting it was when the Dropbox Connection class was outdated.
While I’m trying to see if I can track down this elusive bug, could you please make double sure you have the latest version of the plugin installed? Also the version of php you have and the wordpress version might also help.
If all else fails I could try giving you some debug versions of the files to help track it down better.
Sadnem Reply:
April 3rd, 2010 at 3:11 am
I´m getting the same error, tdp plugin last version is installed and i´ve just ran an apt-get upgrade to check if php was outdated, still getting the same error, I could send you the debug logs if you send me the debug version.
Rudolf Reply:
April 24th, 2010 at 3:52 pm
impossible w-string
There seems to be an error. I’ve installed the most recent version of wp. Hopefully, you can resolve this issue.
thanx
23 October 2009 @ 2:56 am
I have installed Wordpress and its great and also installed the Plugin and activated it. The page is under settings and TDP settings. How can I get it on one of the pages? I put both code in and it does nothing.
Thanks
[Reply]
23 October 2009 @ 3:54 am
I gotten to the added page and it seems to work except the CA certificate error. I have placed a certification.cer file in main httoc folder and I know that I need to point Dropbox uploader but where do I put that line of code? I am using the plugin and I am able to edit it within Wordpress.
any help would be appreciated
thanks
Chris J
[Reply]
Andrew Reply:
October 23rd, 2009 at 7:20 pm
Hello,
I assume you mean the this certificate file fix line
“$uploader->setCaCertificateFile(”path/to/the/certificate.cer”);”
What you need to do is find these lines in the main php file:
// Upload
$uploader = new DropboxConnection($dbemail, $dbpassword);
$uploader->upload($tmpFile, $dbdir . “/”. $_POST['dest']);
and add the fix line between them so it’ll look like so:
// Upload
$uploader = new DropboxConnection($dbemail, $dbpassword);
$uploader->setCaCertificateFile(”path/to/the/certificate.cer”);
$uploader->upload($tmpFile, $dbdir . “/”. $_POST['dest']);
[Reply]
23 October 2009 @ 7:51 pm
Thanks Andrew
You are a big help.. I tried it in different places.. I am working on it now and will let you know
thanks
Chris J
[Reply]
24 October 2009 @ 1:29 pm
Well, I am still a noobie here.
Heres the error:
Error: Cannot execute request: error setting certificate verify locations:
CAfile: /Applications/MAMP/htdocs/certification.cer
CApath: none
Heres my edit line:
$uploader->setCaCertificateFile(’/Applications/MAMP/htdocs/certification.cer’);
Heres my total string:
$uploader = new DropboxConnection($dbemail, $dbpassword);
$uploader->setCaCertificateFile(’/Applications/MAMP/htdocs/certification.cer’);
$uploader->upload($tmpFile, $dbdir . “/”. $_POST['dest']);
Do you see anything wrong with this?
Thanks so much for your hard work
Chris J
[Reply]
Andrew Reply:
October 25th, 2009 at 9:36 am
I’ve done a bit of searching and I might know what the issue is. Try setting the permissions of the certification.cer file to 755.
Let me know how that works out.
[Reply]
29 October 2009 @ 9:32 pm
on my Mac 10.5 machine, i am able to add any user or name like 755. But my 10.4 I am not able to. Just it has ‘others’ included as able to read and write.
But it doesn’t work. I tried others dropbox uploader script but your plugin is the only one that I am able to have a web page with the upload feature. The others always has an error.
So I am still at this error: Error:
Cannot execute request: error setting certificate verify locations:
CAfile: /Applications/MAMP/htdocs/certification.cer
CApath: none
Does this cert file needs to be in aparticular area? I am using MAMP so I can have it on a localhost. I am not hosting it anywhere but local. MAMP has a htdocs folder thats where wordpress files are. I have tried different areas for the cert file but to no avail. I appreciate all your help. But this is where I am at. It would really help to provide an upload feature for my type of work
Thanks again
Chris J
[Reply]
Andrew Reply:
October 29th, 2009 at 10:13 pm
Of what I gather that error is the result of the script somehow failing to red the certificate file. Running it locally might mean there’s an easier fix.
You can try to undo the code changes I mentioned earlier and install the certificate by using this guide: http://help.godaddy.com/article/5243
I’m not sure if it’s exactly what you need since I’m not a Mac user, but let me know if it works/ doesn’t work. Sooner or later we’ll get to the cause of this
[Reply]
31 October 2009 @ 7:20 am
Thanks Andrew.
well, I couldn’t get it to work. I tried on two different Macs. My 10.5 Mac, the Keychain app stalls and freeze when I try to import the certificate. The 10.4 Mac, it doesn’t do anything. Doesn’t import. So I am back to square one.
Thanks for trying and if any other ideas, I am all ears.
FYI the info on the certification that I use I got from here:
http://www.geotrust.com/resources/root_certificates/certificates/Equifax_Secure_Global_eBusiness_CA-1.cer
thanks
Chris J
[Reply]
31 October 2009 @ 7:36 am
Whoohoo Andrew
I found the issue. The certificate itself is not good. I found an certificate inside a package for Dropbox Uploader by Jaka
Heres the link for anybody else that needs it.
http://dl.getdropbox.com/u/780382/Equifax_Secure_Global_eBusiness_CA-1.cer
The only error I have it says login unsuccessful. but I imagine that will be an easy fix
Thanks for heading me in the right direction
Chris J
[Reply]
1 November 2009 @ 4:46 am
I am still getting the error:
Error: Login unsuccessful.
I checked the setting under TDP and input the user and pass.
also edit the pluggin under file dropbox-plugin/tdp_config.php
with the same info
any ideas?
Thanks
Chris J
[Reply]
5 November 2009 @ 6:43 am
I am very sorry to tell you that I don’t know why someone gets the w-string error mentioned above. However I can show you how to reproduce it. Just try to append your code to a subdirectory within the ‘Public’ folder of your dropbox account. After I changed my directory structure to have my files in the ‘private’ area it worked without the w-string errors.
[Reply]
Andrew Reply:
November 5th, 2009 at 9:29 am
Thanks a lot. Previous versions of the plugin did that with the public folder itself. I thought it was fixed when I updated the dropbox connection class.
In a couple of days when I put the ‘new’ version up I’ll double check that I’m using the latest version of the class as well.
Till then I recommend you make a non-public folder and use that.
[Reply]
Xavier Reply:
December 16th, 2009 at 4:51 am
Thanks a lot, it works great now, !!
[Reply]
5 November 2009 @ 6:52 am
[...] Verfügung. Dies gelang mir allerdings nur aufgrund des großartigen Plugins zur Integration von Dropbox in [...]
6 November 2009 @ 7:17 pm
It appears that the plug-in - and the originating code from jaka.kubje.org and individual-it.net - have stopped working. Any time a connection is attempted to Dropbox, an error message results:
Error: Cannot extract token! (form action=/login)
This error appears on your demo page as well.
Has Dropbox changed it’s authentication method again? Is there a workaround or quick fix you can suggest?
[Reply]
Andrew Reply:
November 6th, 2009 at 7:30 pm
Thanks for bringing this to my attention.
I’ve not poked the connection class much but I’ll try to see if I can fix it myself. By the time I figure out how to do that it’ll most likely be fixed by one of the two, as they’re more experienced with their own code. I’ll keep an eye out for any fixes and will release an updated version as soon as I get it working or find a working version.
For the moment I’m sorry for the inconvenience.
[Reply]
Chris Griffin Reply:
November 7th, 2009 at 12:25 am
FYI - Part of the problem is the the folks at dropbox just changed their url from getdropbox.com to plain old droppox.com. I updated this url throughout the connection class and that particular error went away. However, now I’m getting new SSL Certificate errors. Oh well…
[Reply]
Andrew Reply:
November 7th, 2009 at 4:26 pm
I’ve changed the URL of my instalation to just dropbox.com and seems to work.
I’ll release a hotfix later today.
For the SSL error you could try looking here: http://jaka.kubje.org/software/dropboxuploader/
and possibly here: http://software.o-o.ro/dropbox-plugin-for-wordpress/#comment-125
[Reply]
Chris Griffin Reply:
November 7th, 2009 at 5:33 pm
I figured my issue out and it’s working fine. Thx!
[Reply]
Andrew Reply:
November 7th, 2009 at 5:35 pm
Glad to hear it.
8 November 2009 @ 6:45 am
Would it be possible to add the filesize and also date modified to the output? Dropbox’s web version does it. Hoping it may be easy to pull those attributes out and display them on the anonymous dropbox file list.
Thanks Andrew. Appreciate your work on all 9 versions so far.
[Reply]
Andrew Reply:
December 12th, 2009 at 6:11 am
I’ve just added those features. Thanks for the suggestion and please let me know if you have more
[Reply]
11 November 2009 @ 6:01 pm
Hi.
I upgraded the domain from ‘getdropbox.com’ to ‘dropbox.com’ and I got the SSL error.
I just tried with an other (new?) certificate and it runs smoothly. You can download it here : http://www.geotrust.com/resources/root_certificates/certificates/Equifax_Secure_Certificate_Authority.cer
(It’s a different certificate than the *CA-1.cer)
Regards.
[Reply]
27 November 2009 @ 2:57 am
Hello,
I feel I am just so close to get this Dropbox plug-in to work. Still come up with Error: Login unsuccessful.
I tried GhostLyrics suggestions. But maybe I misunderstood. I changed directory to public folder.
I also updated the plugin whereas the new DB url is updated but to no avail.
I have a question. in the config,php and the TDO settings what would you put in directory tree? If you want the directory to start in the public folder? would you just put public or would you put slash before public like this: /Public ?
thanks for your hard work
[Reply]
Andrew Reply:
November 27th, 2009 at 7:45 pm
Sorry for taking so long to get back to you.
The example I run here is set up exactly as in the screenshots on the wordpress org site: http://wordpress.org/extend/plugins/dropbox-plugin/screenshots/
Does your password or dropbox login email have any unusual characters?
[Reply]
27 November 2009 @ 8:54 pm
Thanks Andrew.
Well, it didn’t work still, no illegal characters in pass. just letters and numbers. I checked the settings it seems a zillion times..
Thanks for you time tho.. any other ideas, give it a shot.
thanks
Chris J
[Reply]
Andrew Reply:
November 29th, 2009 at 10:44 pm
Hmm, have you tried editing the config file and adding your email and password there manually?
[Reply]
2 December 2009 @ 2:36 am
Yes, I have done that manually. Its in the TDP settings as well.
Heres what I inputed in config file
$dbemail=get_option(’cjones@xxxxxxxx.com’);
$dbpassword=get_option(’xxxxxxxx’);
$dbdir = get_option(’/Public/Update’);
is the quotation marks after the input correct?
I appreciate all you do. I probably have a rare issue. here.
I do not have illegal characters in pass. just made of misture of letters and numbers.
thanks
chris j
[Reply]
Andrew Reply:
December 2nd, 2009 at 2:48 am
get_otion(”text”) gets the contents of an option named “text” which has to be previously set. Since I’m pretty sure your wordpress installation didn’t set any options with the names of your email and password it’s getting null values from it, sending them to the plugin and you’re essentially trying to log in without an email nor a password.
To fix it you should write it like this:
$dbemail=’’cjones@xxxxxxxx.com’;
$dbpassword=’xxxxxxxx’;
$dbdir = ‘/Public/Update’;
If that doesn’t work you can try it with “//” instead of the simple “/”s. If that doesn’t work either… well.. let me know and we’ll see.
[Reply]
2 December 2009 @ 2:45 am
another thought, do you suppose my hosting service, is hindering this? I am using Wordpress.
thx
chris j
[Reply]
Andrew Reply:
December 2nd, 2009 at 2:51 am
Oh wait.. you’re hosting this on wordpress.com? I wasn’t aware they allow user plugins. Also I’m not sure they have curl available.
[Reply]
2 December 2009 @ 9:01 am
No, I am not hosting it on wordpress.com.. I am using their database and source files for website. I am hosting it on .o7x.net.
I will try your other ideal
thx
Chris j
[Reply]
2 December 2009 @ 9:06 am
Andrew
It worked.. You are splendid!.. Great work.. whoohoo. Now I can celebrate tonight.. wow..Just what I wanted
thanks a million Andrew
Chris J
[Reply]
Andrew Reply:
December 2nd, 2009 at 1:10 pm
Oh thank goodness. Finally!
I’m glad it’s up and running. Let me know if anything else comes up.
[Reply]
22 December 2009 @ 3:09 am
Hello, its me again.. I updated the pluggin. But now it doesn’t work. I updated the config file as we done before. Made sure the TDP settings as well as the config and I come up with this error:
Error: Cannot execute request: couldn’t connect to host
any ideas. If I use the TDP setting page on my Wordpress admin site. I have this shown on bottom of the page, that its uploading but then it stops.
any help would be appreciated.
thanks
Chris J
[Reply]
Andrew Reply:
December 22nd, 2009 at 2:47 pm
It seems I have some issues on mine as well when it comes to uploading. I’ll get to the bottom of this as soon as I can. Most likely later today. In the meantime please roll back to the previous version.
[Reply]
22 December 2009 @ 8:50 pm
Okay.. Don’t stress over it.. just take your time..
happy holidays
chris j
[Reply]
8 January 2010 @ 8:18 am
Really excited about this Plugin. Thank you so much for making it.
However, I’m having an issue that I haven’t found anyone else in this post having.
This is error I get when trying to use the uploader with the destination field empty.
Warning: mkdir() [function.mkdir]: No such file or directory in D:\home\grandslamstringers.com\wwwroot\wordpress\wp-content\plugins\dropbox-plugin\tdp_main.php on line 90
Error: Cannot create temporary directory!
I’ve tried putting in an existing directory and same thing. Any guidance would be greatly appreciated.
Thanks
[Reply]
Andrew Reply:
January 8th, 2010 at 8:32 pm
Hmm, in your “D:\home\grandslamstringers.com\ folder”, do you have a “tmp” folder? If so what are the permissions?
If not, try making one and set the permissions to 755.
Please let me know how it works out
[Reply]
8 January 2010 @ 8:57 pm
Nope do not have a tmp folder anywhere. I created one however my FTP program would not let me change the permissions to 755.
This is on a Windows based host. Does that even matter?
I fiddle around and let you know how it goes. Thank you so much for the help.
[Reply]
8 January 2010 @ 9:00 pm
Oh and the error I get is: ‘SITE CHMOD 755 tmp’ not understood.
[Reply]
Andrew Reply:
January 8th, 2010 at 9:04 pm
Being a windows host shouldn’t make a difference, What exactly are you using to change the permissions?
Both CPanel’s file manager and filezilla for example allow me to change it.
[Reply]
8 January 2010 @ 9:07 pm
I’m using Fetch on the Mac. I’ll log in to the cpanel and try there.
[Reply]
26 January 2010 @ 3:02 am
This plugin is AWESOME! One question, how can we change the list of documents to be sorted with the most recent document first? I know DropBox sorts by file size but we upload a new document each day and want the most recent one to be on top.
[Reply]
Andrew Reply:
January 26th, 2010 at 4:05 am
That’s a great idea, I’ll see what I can do about that and several other customisation options in the next release.
The next release should be out sometime in the second half of February. Sorry for the waiting period but it’s the soonest I can get to work on it.
[Reply]
4 February 2010 @ 7:36 pm
I’m also getting the error “Error: Cannot create temporary directory!”
I’ve tried placing a tmp folder in several places but can’t seem to get anywhere. Is there something else that would be preventing it from creating this temp directory?
Any help would be appreciated, Thanks!
[Reply]
9 February 2010 @ 5:52 pm
Hi,
Thanks for the great plugin. I have a suggestion:
I don’t want my visitors to be able to select folder. I would prefer to only have a select file and upload if I add the upload thingie to a page. Destination should be preset on the admin side, or even better a parameter : [dropboxupload&folder="somefoder"].
Cheers
[Reply]
Andrew Reply:
February 9th, 2010 at 7:48 pm
These are features already planned for the next release which will be later this month.
Thank you for the suggestion though
[Reply]
11 February 2010 @ 11:49 am
thank you for that handy plugin but i am having a problem
Error: Cannot create temporary directory!
I tried to upload from the backend.
“Destination directory” seems to be a dir on my server - right? i have a /tmp with 777 but even if specified i get the same error.
[Reply]
Andrew Reply:
February 11th, 2010 at 12:46 pm
I think I know the problem. What’s the absolute path to the temp folder?
[Reply]
Martin Grether Reply:
February 11th, 2010 at 12:58 pm
thanks for your quick response!
putenv(’TMPDIR=/var/www/web39/html/bolsgenever/tmp’);
and sitewise its /tmp
where should that dir be?
[Reply]
Andrew Reply:
February 11th, 2010 at 1:02 pm
Check to see if you have a tmp folder here:
/var/www/web39/tmp
[Reply]
Martin Grether Reply:
February 11th, 2010 at 1:10 pm
my domain points to ../bolsgenever/
there is no tmp in “web39″
what does the plugin expect?
[Reply]
11 February 2010 @ 11:33 pm
Great plugin, it works perfectly! I am using it with Wordpress and while I have tried (and failed) I am attempting to add some more fields to the form, such as name and email, that will send a notification to me when someone uses the form. I have had moderate success manipulating the main file using standard php for a contact form. But it’s not quite getting there, any help would be great.
// Upload
$name ='name';
$email ='email';
$filetype = 'filetype';
mail( "jbo@jessicabo.com", "Conversion Upload Form",
"Name: $name\nEmail: $email\nFiletype: $filetype", "From: $name ");
$uploader = new DropboxConnection($dbemail, $dbpassword);
$uploader->upload($tmpFile, $dbdir . "/". $_POST['dest']);
echo ‘File successfully uploaded!’;
} catch(Exception $e) {
echo ‘Error: ‘ . htmlspecialchars($e->getMessage()) . ”;
}
[Reply]
Andrew Reply:
February 12th, 2010 at 12:09 am
Let me see if I understand.
You want people to be able to give you a name and email when uploading files, and you want to receive a notification containing their data?
If so I’ll be glad to add it as a feature to the next release (sometime this month)
[Reply]
Jessica Reply:
February 12th, 2010 at 2:09 am
Yep that’s exactly what I am looking for! It would be a great feature. Thanks so much!
[Reply]
12 February 2010 @ 8:26 am
Getting an error:
Parse error: parse error, unexpected ‘{’ in /home/content/***/html/wp-content/plugins/dropbox-plugin/tdp_main.php on line 59
Using Wordpress 2.9.1.
What have I done wrong?
[Reply]
Andrew Reply:
February 17th, 2010 at 3:45 am
Not sure, that hasn’t happened before. Do you have the latest version of the plugin?
Also which version of php is your host running?
[Reply]
Jeremiah Reply:
February 17th, 2010 at 7:44 am
Was still running PHP 4. I updated and it works now. Sorry for the bother.
[Reply]
Andrew Reply:
February 17th, 2010 at 1:40 pm
I’m glad you got it running
[Reply]
16 February 2010 @ 10:49 pm
Andrew,
I modifed your code a bit to include icons next to folders and files (based on extension) and would be glad to provide the code if you’re interested. Just let me know where to send it — you can email me at the address I provided as part of this comment form.
Thanks for a great plugin!
[Reply]
Scott Reply:
February 16th, 2010 at 10:53 pm
Screenshot of the modified output:
http://smccandl.net/images/screenshot8.png
[Reply]
Andrew Reply:
February 16th, 2010 at 10:56 pm
That looks great! Excellent work
I’ll email you in a moment.
[Reply]
20 February 2010 @ 10:44 pm
Hey, thanks so much for this plugin - it is quite needed!
been playing around with it on my site and I have a few questions/possible feature requests:
-are there max file size or timeout limits that can be adjusted to accomodate large filesizes?
-could there be an progress-bar added so that users know the status of their uploads?
-are there specific file formats that could be allowed/dissallowed?
it seems that If I try to upload anythink larger than a 500k image, I get the following error:
“Error: File was not successfully uploaded from your computer.”
Any help would be greatly appreciated!
Thx!
[Reply]
Andrew Reply:
February 21st, 2010 at 11:37 am
Hello Curtis
- I’ve just tested the dropbox plugin I have here with a 2MB file and seemed to work, also the limit is set to 32MB; maybe your host has some security restrictions in place which prevent the upload
-I’ve added the progress bar to the to-do list
-I’ve also added allowing and disallowing file formats to the to-do list
Thank you for the suggestions
[Reply]
Curtis Reply:
February 23rd, 2010 at 3:22 am
yes, It was the php.ini file in the wrong directory! note to others: php.ini file must be in two places now, the wp-admin folder and the root blog folder to allow php_upload limits above 2MB.
I look forward to future releases!
C
[Reply]
4 March 2010 @ 5:16 am
I don’t know if this feature is planned, but I would like to be able to do something like:
[dropbox folder=folder1, listonly=True, subfolders=False]Where
folder= would allow you to set the folder. This would give us the ability to display different folders on different pages. Of course this would apply to dropboxupload as well.
listonly= would indicate if the files are downloable. I might want a user to upload to a different folder but not let them download until I validate the file and move it into the download folder.
subfolders= would dictate if the subfolders are visible.
Also, you might want to make a security model where it only works when the post/page is created by an admin or other predefined user.
[Reply]
Andrew Reply:
March 4th, 2010 at 12:39 pm
The folder and subfolders options are already implemented in the test version.
I’ve added list only to the to do list and I’ll see what I can do about securing it against unwanted users. These are great suggestions
The list of things to add and fix is constantly growing so I think I’ll draw the line at features one of these days and keep the remaining ones for the next update or I’ll never get to upload a new version.
[Reply]
4 March 2010 @ 12:12 pm
The folder and subfolders options are already implemented in the test version.
I’ve added list only to the to do list and I’ll see what I can do about securing it against unwanted users. These are great suggestions
The list of things to add and fix is constantly growing so I think I’ll draw the line at features one of these days and keep the remaining ones for the next update or I’ll never get to upload a new version.
[Reply]
7 March 2010 @ 11:20 pm
Hi,
If you are working on a localhost and want to get around the SSL problem without messing around with certificates and the like, you can just change the tdp_DropboxConnection.php file, line 208:
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
to
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
Problem gone
Wicked plugin dude!!! Very much appreciated!!!
A couple of things I would love to see in this plugin:
The ability to list the directories and files in the add media pop-up so that individual files could be added to posts by an administrator.
+1 for the ability to restrict access to user based on groups or roles. This plugin is very simple and if set up right, works a treat for posts, pages and linked files, but alas not for files linked through this Dropbox method… any ideas?
http://www.gm-alex.de/projects/wordpress/plugins/user-access-manager/
All the best
Mungo
[Reply]
12 March 2010 @ 8:34 am
I’d like to second Mungo’s ideas and add to them. I’d like to see (or create) an upload page that would allow authorized users to upload their files to a unique, user specific folder.
I’d also like to give them the ability to copy files to another user’s folder.
I guess I’ll need to teach myself some more wp programming skills.
[Reply]
22 March 2010 @ 2:31 am
Hey Andrew,
Is there a demo for this plugin that I can view that shows and or tells how it works or how to customize it?
[Reply]
22 March 2010 @ 6:47 pm
The plugin is great
I can see but I can not do file uploads
While the TDP options can upload files, where is the problem?
thanks for your invaluable help.
sorry for my English
[Reply]
12 April 2010 @ 1:55 pm
Same problem as others,
Error: Cannot create temporary directory!
I’ve created a /tmp folder with cdmod 755 (and verified it works using other app) but still get the error.
[Reply]
4 May 2010 @ 2:47 pm
Hello I´m also getting this error:
Warning: mkdir() [function.mkdir]: open_basedir restriction in effect. File(/tmp/DropboxUploader-4be00633b5ffe) is not within the allowed path(s): (/xxxxxx/var/www/diagnostics:/usr/share/php) in /xxxx/wp-content/plugins/dropbox-plugin/tdp_main.php on line 90
Error: Cannot create temporary directory!
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/DropboxUploader-4be00633b5ffe) is not within the allowed path(s): (/xxxx:/var/www/diagnostics:/usr/share/php) in /xxxxxx/wp-content/plugins/dropbox-plugin/tdp_main.php on line 113
Destination directory (optional)
[Reply]
5 May 2010 @ 5:17 pm
I’m getting this error when uploading
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 18586 bytes) in /home/xxx/public_html/upps/wp-content/plugins/dropbox-plugin/tdp_DropboxConnection.php on line 231
[Reply]
Maria Reply:
May 5th, 2010 at 5:21 pm
I’m on Wordpress MU. Is that the problem? T.T
[Reply]
21 May 2010 @ 1:25 pm
any way to show dropbox shared files in a page of my blog?
[Reply]
Andrew Reply:
May 21st, 2010 at 1:35 pm
You mean files in the public folder?
[Reply]
21 May 2010 @ 1:56 pm
I mean files in the folder setted up for plugin
[Reply]
Andrew Reply:
May 21st, 2010 at 2:04 pm
I just noticed that the test page is also not showing files. I’m looking into it now.
[Reply]
21 May 2010 @ 2:06 pm
ok, waiting for news
[Reply]
Andrew Reply:
May 21st, 2010 at 3:22 pm
Seems that Dropbox made some changes to the site(turned off the no-javascript file browser), and that’s causing the plugin to misbehave. I’ll see what I can do, but it might take a while.
[Reply]
5 June 2010 @ 1:56 pm
Hi Andrew,
anything new with your wordpress plugin? Black B. from the Dropbox forum got it to work with Joomla. See the demo here:
Dropbox with Joomla
and
Dropbox Forum: Joomla Plugin
He is not able to publish it though, due to a problem with the Dropbox API. See here
But besides that it works fine.
So what do you think? Is it possible to convert that plugin so that we can use it with wordpress again?
Or do you even have tiime to work on it in the near future?
Thanks,
Stefan
[Reply]
Andrew Reply:
June 5th, 2010 at 11:44 pm
Hello Stefan,
Thanks for letting me know, I’ll try to look into it. Currently I’m trying to see if I can make any progress with the mobile version of the dropbox site.
Unfortunately my time is currently taken up by other matters and to make things worse my internet connection is very shaky, making long term testing rather hard
[Reply]
13 June 2010 @ 5:45 am
Is it possible to add the plugin upload form to users on my wordpress page/sidebar so users can upload files to my drop box ?
I know a plugin exists for the same purpose i mentioned but its buggy. Your plugin works fine from admin panel.
Pls have a look into this feature in your next revision if it doesn’t exist..
Thanks,
Srinivas
[Reply]
Srinivas Reply:
June 13th, 2010 at 6:05 am
Updating my own post.. Found it thanks a lot !!!
Sorry for not reading read me !!!
[Reply]
Andrew Reply:
June 13th, 2010 at 6:37 pm
I’m glad it worked out, but to my knowledge the plugin was no longer operational due to recent changes in dropbox. Does the upload still work?
[Reply]
13 June 2010 @ 7:22 pm
the plugin has problems.. uploads not workin consistently ..
Hoping to edit the buggy part.. But my knowledge on plugin is limites lets see how it goes !!
[Reply]
14 July 2010 @ 2:28 am
I put the tag into one of my pages as instructed in the directions and I only get this display: “Viewing: ../”
I have entered the login and password correctly and have tried multiple iterations of a directory. Do this plugin work with the newest version 3.0? I am trying to do an evaluation of this plugin but I am having a very hard time and find little documentation. Please help.
[Reply]
Andrew Reply:
July 14th, 2010 at 2:37 am
That’s due to a change in the dropbox website which I haven’t gotten a chance to fix yet as I’m currently abroad.
File browsing is currently broken, though uploads might still work.
I’m sorry for not providing a fix sooner, but if all goes well (as it rarely does unfortunately) I should be able to work on the problem in a couple of weeks.
[Reply]
Jim W Reply:
July 14th, 2010 at 3:26 am
Andrew,
I think it would be a good idea to list the fact that file browsing is broken somewhere on this site so that others will be aware of it and not spend so much time wondering what they did wrong.
[Reply]
Andrew Reply:
July 14th, 2010 at 3:31 am
Thank you for pointing that out. I had mentioned it on both the demo page and the post itself, but the post seems to have reverted to a previous version.
The information is now in place.
[Reply]
JimW Reply:
August 4th, 2010 at 12:36 am
Andrew,
Any word on the changes to the plugin?
[Reply]
Mike Reply:
August 5th, 2010 at 12:47 am
Hello All - Was wondering if you had an idea on time frame on this yet.
Thanks
Mike
1 September 2010 @ 12:05 am
I’ve been using Dropbox for a couple of weeks now and love it. I’ve just stumbled upon this exciting plugin to a wordpress blog I’m creating but a little disappointed that you don’t have the time to develop the plugin further. Would some donations from eager Dropbox users like me help you find the time? Thanks.
[Reply]
Andrew Reply:
September 1st, 2010 at 12:20 am
I’m sure nobody is as disappointed as I am. I know I’ve said this a couple of times already, but I can’t work on it during September either. While donations would most definitely get me motivated enough to reallocate time, in the long run it’s better that I finish the ominous unstated business which I’m handling at the moment first.
The plugin is on standby, it is not abandoned and it is not forgotten. I will get it to work!
[Reply]