Greg-DB Dropbox Community Moderator

Comments

  • We don't currently have a native Saver for iOS, but I'll be sure to pass this along as a feature request. However, note that the official Dropbox app registers as an iOS "Document Picker" with the following modes, if you can/want to use that: UIDocumentPickerModeImport UIDocumentPickerModeExportToService If you're using…
  • Yes, you should use listFolder (and listFolderContinue) to get the contents of any given folder.
  • You can use isKindOfClass to check the type: https://github.com/dropbox/dropbox-sdk-obj-c/blob/8d4fcca08a6673af35cf6e116810b13e3e6507e9/README.md#response-handling-edge-cases
  • I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: - the name and version of the SDK/library you are using, if any - the relevant code snippet(s)
  • We don't have a documented guarantee for this, but the expected behavior is that an entry will be returned for the requested folder when recursive=True, but not for recursive=False. (The exception is that we never return an entry for the root folder "".) We behavior shouldn't change.
  • Thanks for following up. There are multiple different rate limit errors you might get, so I asked for the specific error so that I can make sure I offer the right information. Specifically, with SwiftyDropbox, a RateLimitError will have a RateLimitReason which can be either tooManyRequests or tooManyWriteOperations. For…
  • Yea, you can use DBOAuthManager.clearStoredAccessToken for specific tokens, or DBOAuthManager.clearStoredAccessTokens for all tokens.
  • I believe you can get that active within the same session using DropboxClientsManager.reauthorizeClient. Let me know if that doesn't work for you though. Yes, the third one, a DBRequestError, applies to all calls and covers higher level failures (network issues, invalid access tokens, etc.) so it's not documented on each…
  • That code is written for getting tokens from the Sync SDK, but you're using the Core SDK, so the values would be a little different. I put this together for you as a basic concept of how this would work for going from the Core SDK to the API v2 Objective-C SDK: - (NSArray * )getTokensFromCoreSDK { NSString *keychainPrefix…
  • There are a few different errors you might be getting depending on the specifics of the scenario, so please share the specific code and error output you are getting so I can offer help with the particular issue you're running in to. Thanks in advance!
  • I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: - the name and version of the platform and SDK/library you are using - the full text of any error or output, or a screenshot showing the issue - the steps to reproduce the issue - the relevant…
  • Yes, that's right, you should use authorizedClient like that. You can use the DBUSERSRoutes.getCurrentAccount method to get the account information. That would look like this: [[client.usersRoutes getCurrentAccount] response:^(DBUSERSFullAccount *account, DBNilObject *_, DBRequestError *error) { if (account) { NSLog(@"%@",…
  • Yes, that downloads the library and installs it into that project. It looks like you're running in to an issue with the sample app not being up to date with the latest version of the library though. We're looking into it, but you can use 2.0.5 for now. That is, use a Cartfile like: # ObjectiveDropboxOfficial github…
  • There are three versions of the examples provided: https://github.com/dropbox/dropbox-sdk-obj-c/tree/master/Examples/DBRoulette There's one for each supported installation method, and they're pre-configured for their respective installation method, but they don't come with the SDK pre-installed. You'll need to follow the…
  • That "Open in" confirmation is part of iOS itself and was introduced by Apple somewhat recently (either iOS 9 or iOS 10 if I recall correctly) in order to let the user prevent unwanted redirects between apps. Consequently, that is expected, and we don't have control over it. Also, the SDK should automatically store the…
  • Are you sure that's the right path? Spaces shouldn't be an issue, and this works fine for me: $ curl -X POST https://content.dropboxapi.com/2/files/upload \ > --header "Authorization: Bearer <redacted>" \ > --header "Dropbox-API-Arg: {\"path\": \"/DoNotDeleteFunctionalTest/TEST SPACES.txt\"}" \ > --header "Content-Type:…
  • Hi Hinto, we haven't heard back from Trương on this thread, so we don't know if their issue was resolved. Fernando opened a thread here: https://www.dropboxforum.com/t5/API-support/Is-it-possible-to-pass-all-parameters-to-a-v2-API-request-in-URL/m-p/152792/highlight/true#M5099 If neither of these help in your case, please…
  • The list_folder response is paginated. If ListFolderResult.has_more is True, you should call back to files_list_folder_continue for more entries. The documentation for list_folder has information for processing these.
  • The desktop client is available for download here, but there isn't a programmatic interface for linking it like this via an API app unfortunately. We'll consider this a feature request though.
  • Hi, I'll be happy to help with this. Can you share the relevant code snippets and the error output you're getting specifically so I can take a look? Thanks in advance!
  • Yes, all of the cases you shared result in a 400, as they don't follow the specification. If you try a request with a token that might be valid, that is, it matches the expected pattern, but has been revoked, for example, you will get a 401: $ curl -vX POST https://api.dropboxapi.com/2/users/get_current_account \ >…
  • I was able to reproduce the slow uploads, due to what appears to be a performance regression on our side. I wasn't able to reproduce exactly the same error you're getting in some cases, but I believe these are both related to the issue we found. We're looking into it.
  • Thanks! That's a valid URL, and it is responding successfully: $ curl -v "https://dl.dropboxusercontent.com/1/view/npfkvmyekl783z9/wave.mp3" > wave.mp3 > GET /1/view/npfkvmyekl783z9/wave.mp3 HTTP/1.1 > Host: dl.dropboxusercontent.com > User-Agent: curl/7.42.1 > Accept: */* < HTTP/1.1 200 OK < Server: nginx < Date: Tue, 24…
  • Thanks! That's helpful. We'll look into it.
  • Thanks! That's helpful A few notes: - I misunderstood what was being logged in your original post, and testing the code I can confirm the issue isn't the chunk size being 32768. That's the progress callback is showing incremental progress within each single chunk upload call. Your chunk size is working at 5 MB. - In your…
  • The API is returning a valid URL for me. Can you share a sample URL that's giving you trouble? Thanks in advance!
  • No, ListFolder doesn't allow you to configure the page size, but I'll be sure to pass this along as a feature request as well.
  • Hi Bob, yes, if you just follow the getting started guide you linked to, that will have you implement the app authorization flow, allowing users to link to and use your app. That will handle getting new tokens for you and storing them. It's only if you were using an old SDK and want to automatically migrate the previously…
  • The search functionality doesn't support searching for files with one or more of the search terms. It works by searching for all of them. We'll consider this a feature request. Instead, you should either make multiple search calls, one per file type, or use listFolder and listFolderContinue to list all files in a given…
  • Thanks for writing this up. For reference, is the delay you're talking about between when curl finishes uploading the data and when the server sends a response, or is it a delay of curl shutting down after receiving the response? In either case, how are you checking/measuring it? If it's the latter, I'm unfortunately not…