We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Chez B.
11 years agoNew member | Level 1
How do I upload a file to my dropbox apps folder in dropbox in objective c?
Currently nothing happens when I run my code.
This is how I am setting the up client. I did not put the client set up in my viewDidLoad method because this class will never be shown it just hand...
Greg-DB
Dropbox Community Moderator
11 years agoThe nonce should just be any random string, which should only be used once. You can get the current timestamp however you wish.
Also, for what it's worth, if it saves you some trouble, since you just need the one account, I believe you can supply any arbitrary string for userID in the updateAccessToken method. (I can't promise that will always work though.)
Finally, I recommend getting your account linked properly first, but there are a few things that might cause your delegate methods to not be called:
- Your rest client is
nilor is being released (e.g., by ARC) prematurely. - You're making the call in a background thread that doesn't have a run loop.
- Your delegate method that should be called back has a typo in it. Unfortunately the SDK doesn't warn you if it can't find a delegate method to call; it just completes without telling anyone.
Be sure to check your console for any errors though.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!