Greg-DB Dropbox Community Moderator

Comments

  • Unfortunately, the Dropbox API doesn't offer a way to add a folder from a Dropbox shared link directly to an account via the API, without downloading and re-uploading it. We'll consider this a feature request for a way to do so.
  • It's only possible to nest shared folders in "team folders" in Business accounts. It's not otherwise possible to nest shared folders, regardless of account type. If you are operating on a Business account via the API, sharing folders works the same way, inside or outside of team folders. To share a folder you would use the…
  • That's correct, you should store the last cursor you received and occasionally call back to ListFolderContinue using it to retrieve entries for just the things that have changed since the last time you called. Cursors don't expire, but they can become invalid in some (relatively rare) scenarios, so make sure you handle…
  • As announced last year, API v1 has been retired. You can find more information in the blog post here: https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/ We notified developers by email, but it sounds like those emails unfortunately did not make it to you. Now that API v1 has been retired, further API calls to…
  • The Dropbox API does have a rate limiting system, but we don't have any specific numbers documented, nor can we increase or remove the limits for any particular app, user, or team. Also note that not all 429s or 503s indicate explicit rate limiting, but in any case that you get a 429 or 503 the best practice is to retry…
  • The performance you see from ListFolder[Continue] will be account-specific, and dependent on a variety of factors, such as how much file activity there is in the account. The more files and file activity in the account, the more likely it is for these calls to take longer. We're always looking into ways to improve…
  • This should be fixed and no longer throw a `DOMException` as of v3.0.0.
  • Oh, sorry I didn't try the links themselves. I can't speak to how long that lag is unfortunately, as that's out of our control.
  • v3.0.1 is now available at https://cdnjs.com/libraries/dropbox.js/. The Dropbox API v2 JavaScript SDK follows "semantic versioning": https://github.com/dropbox/dropbox-sdk-js#versioning That means that we will increase the major version number whenever there are breaking changes, such as the new constructor above. In…
  • For reference, that is no longer necessary with the latest version of the SDK, v.3.x. You can just use fileBinary directly.
  • The bug with usersGetCurrentAccount should be fixed now, as of v3.0.1. Please try again and let me know if you're still seeing any issues. Thanks!
  • Thanks for following up with the additional information. It sounds like the Dropbox portion of this is working properly then, so I'm afraid I can't be of much help. From your description, you're having trouble with the rest of the HTML/JavaScript work to be done with your app. That's outside the scope of Dropbox API…
  • Can you elaborate on what exactly isn't working for you? For example, is the success callback getting called? What error do you get? It looks like you're to set the value of some element to files[0], but each element in that array is a JSON object as documented here: https://www.dropbox.com/developers/chooser#response
  • Dropbox doesn't offer a programmatic interface for uploading to file requests like this. We'll consider it a feature request. If you need to upload to an account programmatically, you should use the API upload functionality, such as the upload method in the API v2 Java SDK.
  • The API v2 JavaScript SDK just received a major revision that includes breaking changes, with a corresponding major version bump. You can find the release notes here: https://github.com/dropbox/dropbox-sdk-js/releases/tag/v3.0.0 This includes a change to how the `Dropbox` object is constructed. In short, as of v3.0.0, you…
  • The API v2 JavaScript SDK just received a major revision that includes breaking changes, with a corresponding major version bump. You can find the release notes here: https://github.com/dropbox/dropbox-sdk-js/releases/tag/v3.0.0 This includes a change to how the `Dropbox` object is constructed. In short, as of v3.0.0, you…
  • Thanks for the report. We're looking into it. I'll follow up here once I have more information on this for you.
  • Thanks for the report. We're looking into it. I'll follow up here once I have more information on this for you.
  • The authorization code is given from Dropbox during the OAuth app authorization flow. It would either be returned on the redirect URI, if used, or directly to the user on the Dropbox web site, if not. Please refer to the links in my last post for more information on how this works. The authorization code is a temporary…
  • @"hilaal_leo" The official Python SDK doesn't have a `file_download_details` method. Please refer to my earlier posts in this thread for examples of how to download files using the SDK. There's also an example included with the SDK here.
  • @"aaqrabaw" There's a post here that should be helpful: https://stackoverflow.com/questions/33902289/using-dropbox-v2-api-from-browser/34168434#34168434
  • Depending on your use case, you may want to add the `force_reapprove` or `force_reauthentication` parameters. Please refer to my earlier posts on this thread for more information about those. Since those aren't implemented in the JavaScript SDK, you'd need to parse and modify the `authUrl` value in this code to add one of…
  • A path/conflict/file error indicates that the upload failed because a file already exists at the path specified. You'd need to remove/rename the existing file, use a different file name for the upload, or use a different write mode to get that call to succeed. You can find more information in the documentation:…
  • [Cross-linking for reference: https://stackoverflow.com/questions/48367992/how-to-know-my-doc-path-in-dropbox-so-i-can-call-list-rev-api-url ] The /2/files/list_revisions endpoint accepts a file path or ID, and returns the file revisions for that specified file. To get the file path/ID, you can get file metadata via a…
  • In that example, you're using /1/files to access file data. In API v2, the replacement is /2/files/download: https://www.dropbox.com/developers/documentation/http/documentation#files-download That's a "content-download endpoint", so the standard way of using that is via a POST with 'Authorization' and 'Dropbox-API-Arg'…
  • The file properties functionality is now available in the latest version of the Java SDK (currently v3.0.6), e.g., as ListFolderBuilder.withIncludePropertyGroups.
  • Apologies for not following up on this earlier. This has been fixed in the copy endpoint.
  • This should be fixed now. Please let me know if you're still seeing this ServerException.
  • @"MathanKumar" I've sent this along as a request to the team, but unfortunately we don't currently have any plans to raise the requirement.
  • Using redirect_uri to set a redirect URI for the OAuth app authorization flow is the correct way to automatically receive the resulting code or token. It looks like you already have that, and the Dropbox web site is serving the redirect requested. After that, the browser/computer/user is in control of what happens, e.g.,…