Greg-DB Dropbox Community Moderator

Comments

  • Can you let me know how you're checking that the folder for this ID is not deleted? If you supply the ID itself, that may be helpful. You can open an API ticket if you'd prefer to share the details privately: https://www.dropbox.com/developers/contact
  • This URL is returning the response header: Content-Encoding: base64 This content encoding is not supported by the Dropbox Saver system, so you won't be able to use this as-is to save the file to Dropbox. If you control the server, you can reconfigure it to not use this content encoding, and use deflate or gzip instead (or…
  • Thanks! I'll ask the team to update that accordingly.
  • Where exactly is the deprecated method usage that you're referring to? I'll ask the team to update that. Anyway, there's a sample of listing items in a folder here:…
  • @"Manotai M." If you're having trouble with Dropbox itself, you can contact support here: https://www.dropbox.com/support [This thread is now closed. If you have a similar or new question, you can ask here]
  • No, unfortunately there isn't a way to do this directly. I'll send this along to the team to request a way to do so. As a (non-ideal) workaround, you could download the file using get_shared_link_file, and then re-upload it to the receiving account.
  • (Apologies, I posted earlier under the mistaken impression that you were using the Python SDK, not the JavaScript SDK. Please disregard the earlier comment.) It sounds like the user is on a team with the new team space configuration. There's more information about this in the Namespace Guide. The API v2 JavaScript SDK…
  • It looks like you're using a third party HTTP client, and not one of our official SDKs, so we can't offer help with how to construct the call with your client. That said, looking at your code, you don't appear to actually be using your `req` object. You probably need something like `HTTPResponse res = h.send(req);`. I…
  • To use the Dropbox API via JavaScript, we recommend using the official Dropbox API v2 JavaScript SDK. Creating a folder with that can be done similarly to the filesListFolder example (which is written for Node). It would look like this, using the filesCreateFolderV2 method: (written for browser JavaScript, assuming the…
  • 1. If you have a shared link to a file, you can download it directly. Note that the link you shared in your code though points to the HTML preview page for the file, not the file data itself, so your code won't work as is. You can modify these links to point to the file data though, as documented here:…
  • The Dropbox OAuth 2 app authorization implementation supports two different flows: - the "code" flow: this flow requires both the app key and secret - the "token" flow: this flow only requires the app key The `DropboxOAuth2FlowNoRedirect` class in the Dropbox Python SDK uses the "code" flow, so it requires the app key and…
  • All Dropbox API connections require TLS. (Specifically, the Dropbox API servers currently support TLS 1.0, 1.1, and 1.2.) In the API v2 Objective-C SDK, we use `NSURLSession` to make the connections:…
  • As long as you've clicked the "Enable additional users" button on the App Console already (which it sounds like you have), you don't need to do anything else on the App Console to add other users explicitly. In order to have other users connect their own Dropbox accounts, you should implement the OAuth 2 app authorization…
  • There's a basic example of uploading using the filesUpload method in the SDK here. You can supply a `mode` parameter, which takes a FilesWriteMode object, to specify the write mode you want. You can choose 'add', 'overwrite', or 'update'. The 'overwrite' mode will always overwrite an existing file, but the other modes are…
  • What version number of the Dropbox SDK do you have installed? The SDK doesn't have a `Dropbox.authorizedClient`, just `DropboxClientsManager.authorizedClient`. (If you're not running the latest version, currently v4.5.0, please upgrade and try reproducing the issue again.)
  • The official Dropbox API v2 JavaScript SDK is available on npm, and offers the ability to read/write/overwrite files in Dropbox via Dropbox API v2.
  • @"ShawnLyu" It's not possible to create more than one distinct shared link per single file or folder, but I'll pass this along as a feature request. That being the case, you'd need to either use the same shared link for each client, or make a copy of the file or folder for each client (and make a shared link for each copy).
  • Can you check if `client` is `nil`? It looks like you maybe meant to use `DropboxClientsManager.authorizedClient` instead of `Dropbox.authorizedClient`.
  • No, I'm afraid there isn't a way to list all documents, including those that you have neither accessed nor created, via the Paper API, but I'll pass this along as a feature request.
  • Yes, that request is still open, but the team has not implemented this. I'm afraid I'm not aware of any current plans to do so and I can't promise that it is something they will work on in the future.
  • Thanks for the clarification and feedback! We don't have a drop-in replacement like that unfortunately, but I'll pass this along as a feature request.
  • To clarify, do you mean you had one of the Dropbox SDKs for API v1 (originally called the "Core SDK" or "Sync SDK") installed in your app? The Dropbox API v2 Objective-C SDK is not a drop-in replacement for those. You'll need to follow the instructions in the documentation here to install it and update your code…
  • If you know the path to the file, you can get the file metadata using `files().getMetadata()`: https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#getMetadata-java.lang.String- By the way, if you just want to download the latest version of the file, you don't need…
    in v2 API Comment by Greg-DB May 2018
  • @"ShawnLyu" You can find more information about the SharedLinkSettingsError.not_authorized error in the documentation here: https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.sharing.SharedLinkSettingsError In short, you'll get that if you try to use a setting that isn't available to the account for…
  • There isn't an overall limit. If you're calling /2/files/list_folder/continue repeatedly until has_more=false and you're still missing entries, please open an API ticket with the details so we can check on it for you: https://www.dropbox.com/developers/contact The following would be useful: - the registered app name or key…
  • I can't provide support for dbxcli or dropbox-sdk-go-unofficial unfortunately, so please open an issue there directly for the maintainers: https://github.com/dropbox/dbxcli/issues
  • The exact order will depend on how things work on the Dropbox backend, so while it may be at least partially in chronological order, it's not guaranteed or externally predictable. As long as you call back and retrieve all of the pages, based on has_more, you should receive all of the entries.
  • I'm not sure I understand your question. What behavior do you want in this case? Do you want to be able to list the (deleted) contents of the deleted folder? If the folder does not exist (e.g., it was deleted), attempting to access it is supposed to fail with a 'path/not_found' indicating that it doesn't exist.
  • The list_folder endpoints do not promise a certain order for the returned entries. I.e., the first returned entries may not be the oldest ones. Your app should check the has_more value in the result, and if it's true, call back to /2/files/list_folder/continue to get the rest of the entries. Once you process the all of the…