We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Bob S.15
8 years agoCollaborator | Level 9
uploadURL unrecognized selector
I'm trying to upload my app's old Dropbox support to the newest SDK. Has uploadURL been killed? All I see is "upload" -- but there's no argument for the source file, so how do you use it? Some exa...
Bob S.15
8 years agoCollaborator | Level 9
Okay I finally got this by grepping the SDK folder for "uploadData" and finding the true arguments to this function. I had "Modified" spelled wrong, and there was an additional argument 'strictConflict' that was missing. The working call looks like this.
[[[[DBClientsManager authorizedClient].filesRoutes uploadData:finalPath
mode: [[[DBFILESWriteMode alloc] initWithOverwrite] autorelease]
autorename: @(NO)
clientModified:nil
mute: @(NO)
propertyGroups:nil
strictConflict:nil
inputData: fileData]
Seriously though am I just old or is this documentation crazy hard to navigate? Plus it is not up to date with conflicting information all over the place...
Greg-DB
Dropbox Community Moderator
8 years agoI'm sorry to hear about the difficulty here. The method definitions can change across SDK versions as options are added. You can always find the latest definitions for the file routes in the DBFILESUserAuthRoutes documentation here:
https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html
I recommend using Xcode's autocomplete though, as it can produce the boilerplate for whatever method you're using, for the version of the SDK you have installed.
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!