Greg-DB Dropbox Community Moderator

Comments

  • @"Здравко" As Здравко said, the 'download_path' should refer to a local file path where you want to save the file; not a folder. And as for the 'path/not_found' error, as they said that's referring to the path on Dropbox itself. A "path/not_found" Dropbox API error indicates that the API call failed because there was…
  • This looks correct. I also just tried this all myself and it worked successfully for me. (Setting refreshToken on dropbox.Dropbox and also calling setRefreshToken is redundant, but it shouldn't cause this issue as long as you're using the correct value.) Please double check that you have copied in all of the values…
  • @"baltasarq" The account that gets connected is determined by which account you're signed in to in your browser when you authorize the app. If you want to use a different account, you'll need to switch to that account in your browser and process the authorization flow again.
  • I'll be happy to look into this further, but I'll need some more information. Please reply with: * the version number of the JavaScript SDK you're using * the steps to reproduce the issue, including the actual code, but don't include any access token, refresh token, or app key/secret themselves * the full text of the…
  • In that case, please double check that you're supplying the correct credentials as outlined in my previous message, e.g., make sure you're using the correct app key/secret for that particular refresh token, etc.
  • In the code you shared here, you're not supplying the refresh token to the "client" object that you're attempting the upload with. You're supplying the refresh token to a different "dbx" object". Make sure you're giving the refresh token to the correct Dropbox object, e.g., your "client" variable. Also, note that the…
  • @"baltasarq" Thanks for the feedback! The startOAuth2PKCE method is defined here. If you're not seeing that method in your installation, please make sure you're using a recent version of the SDK. The latest version is currently v5.4.5. Also, the Android example here is written in Kotlin, e.g., see the DropboxOAuthUtil.kt…
  • @"baltasarq" Здравко is correct; the Dropbox SDKs, including the Dropbox Java SDK, themselves call the Dropbox HTTP API. You can certainly just use the Dropbox Java SDK though. The second half of my previous message contains links specific to the Dropbox Java SDK, so refer to those for information on how to use that.…
  • @"Inna_13" I see you're referring to how the user limit works while an app is in development status, as documented here. While in development status, an app will be "frozen", meaning that no more users can connect it, once it reaches 500 connected users, or two weeks after it reaches 50 connected users, whichever comes…
  • [Cross-linking for reference: https://stackoverflow.com/questions/77059304/dropbox-java-client-for-android-how-to-refresh-token ] Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is now issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access…
  • @"isaacfink" In addition to the one Здравко shared, you can find an example of running it manually using curl in the blog post here, and an example of running it in the JavaScript SDK here.
  • Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is now issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find more information on this migration here. Apps can still get long-term access by requesting "offline" access…
  • The Dropbox API/SDK doesn't return file creation dates (only modified dates), but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. The "Date created", "Date taken", and "Date uploaded" values you're referring to are from metadata embedded in image, such as using Exif.…
  • Thanks for following up. I don't have a documented guarantee to share on exactly what navigation/pagination controls would be expected for any given file type, but this issue is open with the team and I'll follow up here once I have any news to share.
  • @"bob-locascio" For reference, while you can get the file ID for a file using its path, that's not the only way to do so. You can get the file ID for a file from any FileMetadata object for the file; FileMetadata objects are used in a number of places on the Dropbox API. For example, you can use…
  • Thanks for the report! I can reproduce the issue of apparently not being able to navigate to other pages in a multi-page .pptx document. We'll look into it and I'll follow up here with any updates on that. I'm not sure I understand what you mean when you say "it is also breaking the format and embedding it like a Pdf…
  • For both of your questions, to list the contents of any particular folder or namespace, whether or not it is shared, you should use the /2/files/list_folder and /2/files/list_folder/continue endpoints. You can start by passing in the empty string "" as the "path" parameter value to list the contents of the root for the…
  • The team has pushed out a change that should fix this. Please let us know if you're still seeing any instances of this now. Thanks!
  • Thanks, that's helpful. We'll look into it and I'll follow up here once I have an update on this.
  • @"b_brown" If you're using the Dropbox Python SDK, the request ID should be shown when printing out the InternalServerError. Can you share a few samples of that so we can check on that for you? Thanks!
  • @"b_brown" Since you're getting a different error code, this would likely be a different issue and the solution may also be different. I've split your message out to its own thread accordingly. So that we can make sure to check on what you're seeing specifically, can you share several 'X-Dropbox-Request-Id' response header…
  • You don't actually need team scopes to access files/folders from the team as long as the connected account has access to those file/folders. An app with the "full Dropbox" access type can access anything that the connected account can access. So, for example, if your own account has access to the contents of a team folder,…
  • It sounds like you're referring to getting an error like "You must be a team administrator to authorize this app". This error occurs when the user attempts to connect an app with any "team" scopes but the user isn't a team admin. The "team" functionality can only be used by Dropbox teams, and can only be authorized by…
  • @"tcnolan7" Здравко is correct; it is possible to implement functionality like this using the Dropbox API, but it would be substantially more work. For instance, you could use the API from your server to call /2/files/list_folder[/continue] to list files/folders, and /2/files/download to download file content, and then…
  • Thanks for following up, however I'm having some trouble understanding your messages. Are you getting any actual error or unexpected output from sharing_list_shared_links in particular? For instance, you said "From the Application exception: (didn't find the sharing_list_shared_links nor it couldn't create it.", but that…
  • The /2/team/members/add_v2 endpoint allows you to add a member to your team (creating a new account for them as needed), but only as long as you have a license available on your team. If you have no more licenses available on your team, the call would fail with a 'team_license_limit' error. The Dropbox API does not offer a…
  • Thanks, that's helpful. I just checked on this more specifically for you, and it looks like in this case that workaround unfortunately won't actually help. (There are a few variables at play here; apologies for the trouble.) In any case I've raised this with the team and I'll follow up once I have an update on the issue.
  • Do you have a sample page with the view link I can try so I can look into this specifically for you? Feel free to open an API ticket here if you'd prefer to share privately. Thanks!
  • Thanks for the report! We'll look into it.
  • First, please switch to sharing_list_shared_links instead of sharing_get_shared_links (since the latter is deprecated). The code for reading the URLs would work the same way. If you're still seeing an issue when using sharing_list_shared_links, please let me know exactly how sharing_list_shared_links is failing for you…