Greg-DB Dropbox Community Moderator

Comments

  • 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.
  • The Dropbox web site has recently dropped support for Internet Explorer 11. You can find the official system requirements here. Please note that API apps should not be processing the OAuth app authorization flow in a web view, per the /oauth2/authorize documentation. Please update your app to use the system browser instead.
  • The startOAuth2Authentication method uses the old flow, which currently gives legacy "long-lived access tokens", which don't expire by themselves. Note that starting September 30th, 2021 Dropbox will no longer return new long-lived access tokens, so you should switch to the new flow. The startOAuth2PKCE uses the new flow,…
  • Are you referring to a file extension on fileResponse.File? That would be under your control, not a matter of the Dropbox API/SDK. For reference, the Dropbox SDK just returns the file data as a stream from GetContentAsStreamAsync(), not file metadata, such as the file name and extension. If you want the file metadata, you…
  • @"jenkinspps" Thanks! That's helpful. We'll look into it and I'll let you know when I have an update on this.
  • You can find information on how to migrate to the new functionality in this post. Please also refer to the OAuth Guide and documentation. Note though that these resources only refer to the Dropbox API itself. The two libraries you linked to are made by third parties, so I can't offer guidance on what functionality they do…
  • If you step through with a debugger, where exactly in the code does this stop behaving as expected? Also, how big is the file you're trying to download, how long does the (incomplete) download take, and that's the final size of the (incomplete) downloaded file?
  • No, it's not possible to switch a user to short-lived access tokens/refresh tokens from long-lived access tokens without user interaction. We don't currently have a plan to disable existing long-lived access tokens though. (If that changes, we will of course announce that ahead of time.) That being the case, your users can…
  • @"jenkinspps" Can you share a few sample X-Dropbox-Request-Id response header values for the issue you're currently seeing? Thanks in advance! 
  • We responded to that ticket on Wednesday. Please check the email inbox for the email address on the account used to open that ticket for the response. If you don't see it, please check the spam folder too.
  • We replied to your support ticket yesterday. Please check the inbox for the email address on the account that owns the app for more information. 
  • You should use the startOAuth2PKCE method instead of startOAuth2Authentication now. You can find an example here: https://github.com/dropbox/dropbox-sdk-java/blob/3162efeccaca247e25553acd21f6ac0bf9018ad6/examples/android/src/main/java/com/dropbox/core/examples/android/DropboxActivity.java#L94