Greg-DB Dropbox Community Moderator

Comments

  • 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 number of the platform and SDK/library you are using, if any * the steps to reproduce the issue, including relevant code snippet(s), but don't include any access token(s)…
  • Can you elaborate on what you mean when you say the uploaded file is corrupted? For instance, is the file bigger or smaller than expected? You could also try downloading the file and opening it as text to see what the data, if any, actually is. In any case, I just tried this myself, plugging in a test access token and my…
  • I'm not familiar with "SWT browser", but it is not officially supported by the Dropbox web site. You can find the official system requirements for the Dropbox web site here: https://help.dropbox.com/installs-integrations/desktop/system-requirements#web Also, from your screenshot, it appears this may be some sort of web…
  • With the new method, you can access the metadata like this: client.files.searchV2(query: query).response { response, error in if let response = response { for entry in response.matches { switch entry.metadata { case .metadata(let metadata): switch metadata { case let fileMetadata as Files.FileMetadata: print("File name:…
  • A 'path/not_found' error like this should indicate that there was nothing found at the specified path. When using an API app with the "app folder" access type like this, the app will only be able to access the contents of the special app folder that it's connected to. In that case, the app should use paths relative to that…
  • For empty files on your local filesystem, I can't provide much help, as that's not related to the Dropbox API. The Dropbox API operates by communicating with the Dropbox servers, not the local filesystem. If you do want to check the metadata on the Dropbox servers though, e.g., to compare with the local state, you can…
  • Thanks for writing this up! We appreciate the feedback. These SDKs don't share code with each other, and are implemented differently. I can't speak to why specifically that's the case, but it may just be due to them having different constraints and supporting different platforms. For instance, the Java SDK supports both…
  • I'll be happy to try and help with this, but I could use some more information. Can you share: * the version number of Python you're using * the version number of the Dropbox Python library you're using * the steps to reproduce the issue, including relevant code snippet(s) (but don't include your access token) * the full…
  • Thanks! This all looks correct. I also just tried copying these snippets into my own sample project here though to be sure, but I still can't reproduce the issue. (And I also have the official Dropbox iOS app installed, handling the app authorization flow.) Also, just to confirm, you're calling DBClientsManager…
  • Unfortunately, the API doesn't offer a way to get the progress of a deleteBatch job like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. (The setProgressBlock method is only referring to the network request itself, not the actual asynchronous job occurring…
  • Thanks for following up. First, when you say you "installed it manually by following the steps of the pod file", do you mean you followed the "CocoaPods" installation method instructions in particular? Also, I understand you saw the issue occur in DBTransportBaseClient, but it would be helpful to know what code you were…
  • I'm glad to hear you already sorted this out. For future reference, or for anyone else in a similar scenario, make sure you read out the response body, as it will generally contain a more specific error message which can help you debug issues like this. It sounds like PowerShell doesn't show that by default, but you can…
  • The /2/files/upload endpoint only supports uploading files up to 150 MB in size. For files larger than that, you'll need to use "upload sessions", which allows you to upload large files by doing so in pieces. Please refer to the /2/files/upload_session/start documentation for information on using that functionality. 
  • Can you share the code you're running as well as the unexpected output? Just be sure to redact your access token. Feel free to open an API ticket if you'd prefer to share privately. Thanks in advance! 
  • To clarify, note that if you're an end-user of a third party app or integration like this that connects to Dropbox, you normally should not have to manually retrieve your own app key, etc. The developer should register the app key themselves, and build the ability to automatically connect your account to the third party…
  • Thanks for the report! To make sure I can reproduce the exact issue you're seeing, can you share the code snippet you're running that triggers this, and indicate on which line in particular it happens? Also, you mentioned you installed the SDK "by manually copying all the classes". Are you referring to the "Manually add…
  • @"Pauline Jeannerot" The original thread you posted on was referring to two different issues. One was an issue on the Dropbox servers, and the other was an issue with the plugin itself. Neither had the same error message that you've shared though, so it seems they are not the same issue you're seeing. That being the case,…
  • If it is changed, then shouldn't the serialized version be updated in SharedPreferences too? I didn't see that in any of the examples, so I am confused as to whether or not it is necessary. What would happen if the token got refreshed, but the next time we come to this Activity, we try to refresh it again, but starting…
  • @"omarprogrammer" I included a few links that may help in my previous comment. Please review those for more information.
  • The Dropbox API doesn't offer the ability to upload via email, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. Dropbox does offer an HTTPS-based API you can use for listing, uploading, and downloading files though, among other operations, so you could potentially…
  • @"phermans" In order to scale to folder listings of any size, the list_folder interface is paginated. The API may return the results across multiple pages, and each page can contain multiple files/folders. You need to implement calls to both files_list_folder and files_list_folder_continue to make sure you can receive all…
  • A 'to/conflict/folder' indicates that the move failed because "There's a folder in the way.". That is, your 'ToPath' value is the path to an existing folder. That value should be the full path and name where you want put the item. For example, if you want to move the file inside an existing folder at "/folder", the value…
  • Each particular endpoint is only implemented to work with some type(s) of authentication, so you can only use whichever one(s) the particular endpoint happens to support. You can find which type(s) each endpoint supports in the documentation, under "AUTHENTICATION". For example, /2/files/get_metadata doesn't support app…
  • The Dropbox desktop client supports some CLI commands on Linux only, but other than that, Dropbox doesn't offer an API for managing the desktop client unfortunately. We'll consider it a feature request.
  • If your team is using the "team space" configuration it doesn't need to use the /2/team/team_folder/create endpoint, since that functionality doesn't apply to the team. Accordingly, attempting to call /2/team/team_folder/create will fail. There isn't a way to switch between these configurations on demand.
  • Your description of the current (long-lived) implementation looks correct. The exceptions are if the user or app unlinks the app or revokes the token, in which case the user would need to re-authorize the app, and in that case, if they've since signed out of the app/web site, they'd need to sign in again to do so. For the…
  • @"phermans" Thanks for the feedback! I see you're currently getting the error: Invalid select user id format That's referring to the value you're passing to identify the particular user account from the team to operate on, which in your case is via the as_admin method to which you're supplying your variable '_member_id'.…
  • The file name and extension, "image" and ".jpeg" in this case, would be included as part of the file name in the metadata returned by Dropbox, e.g., in 'response.Response'. Please refer to my previous comment for an example of accessing that. Of course, Dropbox will only have the file name and extension as supplied…
  • @"phermans" The 'team_space_namespace_id' for a team using the team space configuration would be the 'root_namespace_id' value, e.g., as returned by /2/users/get_current_account. I recommend reviewing the Team Files Guide for more context if you haven't already. In the Python SDK in particular, you can call that…
  • Yes, you should be able to access that in the RateLimitException.RetryAfter property.