After having set up the Dropbox module to use the Dropbox service, I'm getting the following error when trying to send a file to myself as a test:

Cannot extract token! (form action=https://dl-web.getdropbox.com/upload)

Note my site isn't using SSL and I've set "dropbox_allow_insecure" to "true" in my settings.php file.

Comments

remi’s picture

A node about the host ID: you can no longer get it from the URL launched by the Dropbox icon menu. (At least, that is the case for Dropbox 0.6.513 on my Mac.) However, there is a Python script that can display your host ID, and it should work for Windows, Linux, and Mac.

See http://forums.getdropbox.com/topic.php?id=6527 (requires log-in) and http://wiki.getdropbox.com/DropboxAddons/PythonScriptToDisplayConfig.

deviantintegral’s picture

It isn't working on my site either, which was working fine earlier. So I'm guessing that Dropbox changed something which breaks the uploader.

deviantintegral’s picture

It looks like you can no longer log in with https://www.getdropbox.com/tray_login?hostid=. Either they've disabled this method of access completely, or moved it somewhere not obvious. So, either the module will have to change to store usernames / passwords (which sucks from a security standpoint), or we'll have to find out an equivalent method to log in.

deviantintegral’s picture

I tested hardcoding in my username / password, and I was able to upload a file. So now just waiting for a response to http://forums.getdropbox.com/topic.php?id=9356&replies=1 to see what the best way to proceed is.

remi’s picture

While they get their API in place, maybe I can simply hardcode the username and password like you did, or store them in my settings.php file. I didn't look further into the module's code yet. Can you share with us where you did to hardcoded yours?

deviantintegral’s picture

Component: Miscellaneous » Code
Category: support » bug
Status: Active » Fixed
StatusFileSize
new12.38 KB

Here is the patch which I will be committing shortly. I'll be releasing a new stable version once everything's committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

KrisBulman’s picture

i notice your website gives a similar error when attempting to send a file:

"Failed to upload the file. Dropbox returned the following error: Cannot extract token! (form action=https://dl-web.getdropbox.com/upload)"

deviantintegral’s picture

Yes - I hadn't updated my site yet to the latest DropBoxUploader version. I've now updated it.