Greg-DB Dropbox Community Moderator

Comments

  • The OAuth 1 and OAuth 2 flows do work a bit differently. With the OAuth 2 "code" flow, which it sounds like you're using, the user is sent to the specified redirect URI after they authorize your app. That's how the app receives the authorization code. Often, this is just an Internet-hosted web page, so the user sees…
  • @"wishfuluser" Unfortunately I'm afraid I don't have anyone in particular I can direct you to.
  • The account creation option was actually removed in favor of the app link in order to comply with Apple's App Store policies, unfortunately. For reference though, this behavior is controlled via the 'disable_signup' parameter on the /authorize page. It defaults to 'false', but is set to 'true' in the iOS SDKs in particular…
  • Hi, it sounds like you're using the official API v2 Objective-C SDK. Is that correct? If so, the SDK handles the access token retrieval and storage for you, regardless of which flow exactly was used (e.g., via app or web). If you're using that SDK, you should just implement the authorization flow as documented here. That…
  • No, the upload endpoints don't support file IDs unfortunately, but I'll be sure to pass this along as a feature request.
  • The API unfortunately doesn't offer any way to upload or edit Paper documents yet, but I'll be sure to pass this along as a feature request.
  • Thanks for following up. This is an issue on our side, but I don't have a timeline for a fix right now. It appears to be due to the app folder name set for your app. You may be able to work around this issue by changing the app folder name setting for your app on the App Console: https://www.dropbox.com/developers/apps…
  • Yes, in the official Dropbox API v2 Java SDK it's available as FileMetadata.contentHash.
  • You can access the results job ID like this: switch result { case .none: print("Empty result") case .some(let unwrappedResult): switch unwrappedResult { case .asyncJobId(let asyncJobId): print(asyncJobId) case .complete: print("Job is complete") } } Hope this helps! 
  • Thanks for the report! We'll look into it.
  • [Cross-linking for reference: https://stackoverflow.com/questions/43026363/convert-dropbox-get-thumbnail-response-to-img ] Hi @"mattia o.", it looks like there are some examples of doing this here: https://stackoverflow.com/questions/20035615/using-raw-image-data-from-ajax-request-for-data-uri I recommend looking into…
  • Hi @"wishfuluser", thanks for reaching out, but for future reference, please do not post unrelated replies in threads like this. It makes it more difficult to keep track of the conversation in the thread. That said, I'm afraid I can't help with the topic you linked to, as that's not my area of expertise. I know that…
  • The get_thumbails endpoint returns the raw data for the thumbnail itself, and it looks like that's working properly for you. What you do with that thumbnail data is up to you. For example, you can save it to a local file on your server and serve it in an img tag. Or, you may be able to convert it to base64 and use it in a…
  • Your connection speed to Dropbox depends on the routing you get between your ISP and our servers, and may be slower than your ISP's rated speeds. Sometimes resetting or retrying your connection gets you a different route and better speeds, but that is outside of our control. Some ISPs also throttle sustained connections so…
  • OAuth 2 redirect URIs and webhook URIs serve different purposes, and are registered separately. They do not need to be identical, or even share a domain. You can find more information on how the OAuth app authorization works, including the use of OAuth 2 redirect URIs, in the OAuth guide. You can find more information on…
  • If you're going to use a single account like this, you should embed the access token like you do in your most recent post, not via username/password. If you're doing this in .NET, we highly recommend using the official API v2 .NET SDK. That would do much of the work for you. If you use that, to make this call you would use…
  • The Java SDK just uploads whatever raw data is supplied, in this case via the InputStream supplied to the uploadAndFinish method. In your code, that's the "in" variable. Can you try reading that itself and checking whether or not it has the expected data?
  • The Dropbox API doesn't expose any of the Office/WOPI functionality on Dropbox, but I'll be sure to pass this along as a feature request. That being the case, you would need to implement this separately. Sorry I don't have a better answer to share!
  • Please try the latest release, v4.2.4, and let us know if you're still seeing any issues. Thanks!
  • Thanks! That's helpful. In version 3.0.0 of the API v2 Objective-C SDK, "progress" was renamed. You should replace "progress" in your code with "setProgressBlock".
  • For example, in C#, using Json.NET/JsonTextWriter, that would look like: var sb = new StringBuilder(); var textWriter = new JsonTextWriter(new StringWriter(sb)); textWriter.StringEscapeHandling = StringEscapeHandling.EscapeNonAscii; // Write things to text writer textWriter.WriteStartArray();…
  • Yes, the iOS Chooser likewise doesn't use the Dropbox API and isn't affected by the API v1 retirement.
  • The Dropbox API now offers a hash of file data that you can use to verify a file's contents. You can find it in FileMetadata.content_hash. It isn't a single MD5 or SHA1, but rather a combination of SHA256 hashes of the pieces of the file. You can find more information here:…
  • The Dropbox API now offers a hash of file data that you can use to verify a file's contents. You can find it in FileMetadata.content_hash. It isn't a single MD5 or SHA1, but rather a combination of SHA256 hashes of the pieces of the file. You can find more information here:…
  • The Dropbox API now offers a hash of file data that you can use to verify a file's contents. You can find it in FileMetadata.content_hash. It isn't a single MD5 or SHA1, but rather a combination of SHA256 hashes of the pieces of the file. You can find more information here:…
  • The Dropbox API now offers a hash of file data that you can use to verify a file's contents. You can find it in FileMetadata.content_hash. It isn't a single MD5 or SHA1, but rather a combination of SHA256 hashes of the pieces of the file. You can find more information here:…
  • The Dropbox API now offers a hash of file data that you can use to verify a file's contents. You can find it in FileMetadata.content_hash. It isn't a single MD5 or SHA1, but rather a combination of SHA256 hashes of the pieces of the file. You can find more information here:…
  • We're investigating ways to avoid this in the next release. Please skip this release for now.
  • No, unfortunately the API v2 JavaScript SDK only supports supplying the file content as string or buffer, but I'll be sure to pass this along as a feature request. The incorrect_offset error is documented as: "The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous…
  • Thanks for following up with the additional information. We'll look into it.