Greg-DB Dropbox Community Moderator

Comments

  • @"thesongcompany" Apologies for the confusion. I was referring to the "Prevent Cross-Site Tracking" setting in Settings.app > Safari. Can you check that? It may also be easier if you can share a URL of a page where the Embedder isn't working for you. Feel free to open an API ticket if you'd prefer to share privately.…
  • Thanks for the notes! I'll pass them along.
  • The team has updated the SDK to no longer set 'contents' as required in the latest JavaScript SDK version, v9.7.0, so you should be able to use this as expected without the workaround now.
  • Dropbox unfortunately doesn't offer a way to programmatically upload to file requests like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
  • Thanks for sharing this. You can find the current policy in the /oauth2/authorize documentation. This is in place for the sake of compatibility, as well as to comply with Google's policy for their sign in flow, which Dropbox offers as an authentication option. I shared an example of how one might implement this in a UWP…
  • While our sample does run a local server using npm/node, npm/node is not the only option. You have your choice of server for your own app. You don't need to use npm/node in particle to integrate with the Dropbox API using the JavaScript SDK in the browser. Also, the new authorization system does not actually change the…
  • @"thesongcompany" To clarify, I'm not referring to which method of using the Embedder (anchor or JavaScript) you're using, but rather if you're putting the Embedder inside an iframe on your page. (That could be done via either method.) Also, please let me know if you have "Prevent Cross-Site Tracking" enabled. Thanks!
  • @"thesongcompany" Are you putting the Embedder inside an iframe in this case, and do you have "Prevent Cross-Site Tracking" enabled?
  • I'm not sure I totally understand your latest message. Can you elaborate on what you currently need help with? What exactly are you currently trying to do and what are you stuck on? (Even if you can't run the new example via a local server, it can still serve as a reference for the JavaScript code you would need to run to…
  • @"MarteIT" The 'redirect_uri' value you supply to /oauth2/token, if any, should exactly match the 'redirect_uri' value supplied to /oauth2/authorize, if any, when that particular authorization code was retrieved. If they don't match, you'll get this error. The https://www.dropbox.com/1/oauth2/display_token page is a basic…
  • @"James_T" 1-6. Thanks for all the feedback! I'm sending this along to the team. 7. I see you opened a new thread for this, so I'll follow up with you there.
  • Yes, you can continue using the existing legacy functionality/permissions until then.
  • The Dropbox API does have a rate limiting system that can result in 'too_many_requests' errors like this. The Performance Guide you linked to has guidance on how to best upload multiple files, but in any case you'll want to make sure your code can catch handle these sorts of error responses at any time. When you get one,…
  • @"MarteIT" To exchange or "swap" the authorization code for an access token and refresh token you should use "grant_type=authorization_code", as shown in the "access token request in code flow" example (or "PKCE code flow token request" example, if using PKCE) in the /oauth2/token documentation. Using…
  • @"MarteIT" By "swap", Taylor was referring to how the app sends the "authorization code" (which is received from the /oauth2/authorize OAuth step) in the request to the Dropbox /oauth2/token endpoint, and how the Dropbox API would send the access token and refresh token back in the response. I recommend reading the OAuth…
  • @"diwakergupta" wrote:* How do I get metadata for a Paper doc? I tried getting list of `doc_ids` from `paper_docs_list`, but then a subsequent call to `files_get_metadata` fails with path not found (I'm setting `path` to `id:<doc_id>` from the above call). For any given Paper doc, you shouldn't use both legacy "paper"…
  • The path, "/test" in your code here, should be referring to the path of the file or folder in the Dropbox account, not related to the location of the code you're running. I recommend reading the File Access Guide for reference.
  • Yes, you can use the Dropbox API to automate the creation of shared links. For Python, we recommend using the official Dropbox API v2 Python SDK: https://github.com/dropbox/dropbox-sdk-python With that, you can use the sharing_create_shared_link_with_settings method to create a shared link for any file or folder:…
  • The getAuthenticationUrl method was moved under 'auth' in a previous version. You can find an example of using it here. Looking at your code, you probably mean to do this: var baseaddress = $("#baseaddress").val();client = new Dropbox.Dropbox({ clientId: dropBoxClientid });var authUrl =…
  • Thanks for the report. I wouldn't expect the same exact request to produce different results like this just based on using different client, but it's possible that the different clients are issuing the requests in slightly different ways perhaps, resulting in the issue. Are you able to print out the full raw HTTP request…
  • Yes, this bug only affects apps with the "app folder" type, not the "full Dropbox" type. And that's correct, the "app folder" versus "full Dropbox" type is selected when first registering the API app. There isn't a way to dynamically set or fall back on that, e.g., during the authorization flow. You could register one of…
  • What kind of access do each of the apps have? For instance, it sounds like apps "Bbb" and "Ccc" may be registered for the "app folder" access type, so they'd only have access to the contents of the special app folder that gets created for them when connected to an account, not anything else already in the account. When you…
    in ApiError Comment by Greg-DB May 2021
  • @"pvanroos" No, unfortunately the Dropbox API still doesn't offer the ability to share the file request through Dropbox itself. You'd need to take the URL and share it via some other means.
  • Can you confirm you're using an API app registered with the "app folder" access type? There is a bug that results in this error when using this method with an access token for an app folder app. That's still open with engineering, but I don't have a timeline on a fix.
  • This isn't about the app being in development mode; the error message is saying that this app can't be authorized by this user because the app is requesting a team-link but the user isn't a team admin. (Non-admins can't authorize team-linked apps.) Exactly which scopes you should configure and request for your app will…
  • @"ncw" wrote: I got that trace second hand from an rclone tester, but I believe it only happens quite rarely when doing a lot of transfers over a long time. @"ncw" Thanks! That seems to match what I can see on our side. It appears this was a transient availability issue. @"ncw" wrote: Rclone retries this 10 times then…
  • This 'too_many_write_operations' error indicates "lock contention". That's a result of how Dropbox works on the backend. This is a technical inability to make a modification in the account or shared folder at the time of the API call. This error indicates that there was simultaneous activity in the account or shared folder…
  • Extensions are enabled per-account, when a user connects the app to their account, not per-team. Just connecting the team itself won't make the app appear for all team members.
  • The shorter version is shown for apps with legacy non-scoped permissions, where the app requests non-granular access. The longer version is shown for apps with the new scoped permission, where the app can request access on a more granular level. Dropbox will eventually migrate everything to the new scopes permission, in…
  • There isn't a guaranteed maximum time that one of these batch jobs may take. The processing time will depend on a few factors, such as how many files there are, etc., so it can vary. Likewise, there isn't a best frequency for how often to poll these jobs. Once a second is fine. For larger batches, which may take longer…