Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

upload method errors out #23

Closed
ciapecki opened this issue Dec 5, 2010 · 4 comments
Closed

upload method errors out #23

ciapecki opened this issue Dec 5, 2010 · 4 comments

Comments

@ciapecki
Copy link

ciapecki commented Dec 5, 2010

when using the example from README I get:
`upload': wrong number of arguments (1 for 2) (ArgumentError)
when executing:
session.upload('testfile.txt')

when I change this line to:
session.upload('testfile.txt','/')

I get:
/home/chris/.rvm/gems/ree-1.8.7-2010.02/gems/dropbox-1.2.2/lib/dropbox/api.rb:208:in `upload': HTTP status Net::HTTPForbidden received: http://api-content.dropbox.com/0/files/sandbox (Dropbox::UnsuccessfulResponseError)

just to add that at this point authorization was successful.

thanks,
chris

@RISCfuture
Copy link
Owner

Are you sure you have a sandbox-enabled API account? (See the Dropbox::API module docs.)

@ciapecki
Copy link
Author

ciapecki commented Dec 5, 2010

this what I see when looking at this app:
App status Development (Apply for production status)
Access type Full Dropbox

anything else I should check?

thanks,
chris

@RISCfuture
Copy link
Owner

Ah, yeah, if you have a root-access app you need to configure the Dropbox API to know that. Again, see the Dropbox::API class docs for more.

@ciapecki
Copy link
Author

ciapecki commented Dec 6, 2010

thanks for your help, when setting :dropbox mode everything works as expected

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants