Greg-DB Dropbox Community Moderator

Comments

  • That's correct. This is because some scopes depend on others. When you see a scope checked but greyed out, like in the screencast you shared, that means that that scope is enabled, and can't be disabled because another scope that depends on it is also enabled. For example, 'files.metadata.write' and 'files.content.write'…
  • Thanks for following up. I'm glad to hear you tracked this down. The "#" is a character for identifying the beginning of the "fragment" portion in a URI. It's a valid part of a URL, but it sounds like your HTTPS client isn't handling it properly. It's not strictly needed in this case though so you can remove it in your…
  • Thanks for following up with the additional information. For reference, there are a few different types of sharing on Dropbox, and it sounds like you're referring to the type of individual file sharing where the recipient can access the shared file on the Dropbox web site, e.g., at https://www.dropbox.com/share/recents ,…
  • Thanks for sharing your solution! We don't have any sample code for Xamarin unfortunately.
  • Yes, if the app is disconnected (also sometimes called "unlinked"), that will revoke the access token(s), and using any such access token will result in that error.
  • An 'invalid_access_token' error like this should indicate that the access token the client is providing (in the "Authorization" header) is not valid. For instance, it is not an actual access token string, or the access token was revoked. Are you using a valid access token? I recommend reading the OAuth Guide and Error…
  • Can you share the rest of the steps/code to reproduce the error you're getting? Specifically, you shared the code to retrieving the link itself, but how are you accessing the link that then fails? I can use the code you shared to retrieve a temporary link, and accessing that link is working successfully for me. Is there…
  • It looks like your client is getting a 400, but I just gave that a link a try and it is working for me. Can you print out the full request and response, including both headers and bodies, to see what might be going on there?
  • This error message is referring to specifying what account on the Business team to operate on behalf of. For reference, when using any "team scopes", the resulting access token is connected to an entire Dropbox Business team, not an individual account. So, when using a team-scoped access token to access user-specific…
  • The redirect URIs only apply to the OAuth flow. Since you're processing an actual API call here, not the OAuth flow, that wouldn't be relevant. What's the full error message in this case? With the JavaScript SDK you're using, try `console.log(error.error);`.
  • No, the API doesn't offer anything else quite like that. You'll need to retrieve all of the results and apply whatever sorting you want client-side.
  • These endpoints don't offer a way to have subfolders listed first, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
  • Thanks, looking at that line then, is it possible DxClient itself is null? The screenshot is cut off, but I presume there aren't any other variables referenced that I can't see. The Locals pane shows stream and commitInfo as defined, but DxClient isn't shown.
  • The /2/sharing/create_shared_link_with_settings endpoint is the right way to create a shared link for a file, e.g., for public access. Can you print out the response body you get from that call? It should contain either the result, with the created shared link, or an error indicating why the call failed.
  • Thanks for following up and clarifying. It sounds like you're referring to trying to edit a text file on www.dropbox.com. The Dropbox web site doesn't offer text editing functionality for .txt files like that, but you have several options of other ways to edit the file, such as: * You can edit the file locally on your…
  • The Dropbox SDK doesn't offer a way to enable more verbose output, such as for UploadAsync to offer more information about the operation. It's unclear exactly what's occurring here, or why you'd get a NullReferenceException on the variable being used as output, if that is what's happening. Can you print out the full stack…
  • Can you elaborate on what you mean when you say "the file is not editable"? Please share the steps and code you're following that lead to the issue, as well as whatever unexpected error or output you're getting. Be sure to redact any access token or refresh token though.
  • The listFolder functionality does not guarantee a particular ordering or offer options for controlling the order of the returned entries. You should retrieve all of the entries and then apply whatever sorting you want client-side.
  • No, the listFolder functionality doesn't support partial matching like that. You would need to list the nearest parent folder and then apply whatever filtering you want on the results client-side.
  • The Dropbox API search functionality is not always guaranteed to completely/immediately return results, especially when changes are actively being made, due to indexing and caching. That being the case, for a scenario like this, I recommend using listFolder/listFolderBuilder and listFolderContinue instead as that…
  • Thanks, your API support ticket has been received. We'll look into it.
  • Thanks for following up. I can't seem to reproduce this issue though. In the broken case, is "https://www.dropbox.com/oauth2/authorize" definitely the full URL of the page? The browser may be hiding the rest of it. I wouldn't expect the app name and permissions to be shown there if there is no client_id parameter set. In…
  • The files_upload method is the right way to use the Dropbox API via the Python SDK to send some file data to the Dropbox servers and save it as a file in the connected Dropbox account. (Note that it only supports files up to 150 MB in size; for larger files, use upload sessions.)
  • To clarify, is "https://www.dropbox.com/oauth2/authorize" the full URL of the page where this stops, or are there also more parameters on that? Please share the full URL if there is more to it. If you can also share the URL before processing the Google Sign in flow that may be helpful. Feel free to open an API ticket here…
  • Thanks, can you share several sample 'X-Dropbox-Request-Id' response header values though?
  • Yes, there are a few ways you can navigate and determine the relevant namespace IDs without using team endpoints. For accounts with a team space, you can check /2/users/get_current_account to get the 'root_namespace_id'. Check out the Team Files Guide for information on that. For accounts without a team space, you can list…
  • Yes, even when an app is not connected to a team itself (i.e., it's not authorized by a team admin to access the Business API functionality), the app can still use the standard Dropbox API functionality to access any files/folders in the account, including the contents of any team folders/space (as long as it isn't…
  • Can you elaborate on what issue(s) you're running in to exactly? The account/plan type doesn't affect what files can be accessed in a particular account via a third party app. The code you shared uses the "Dropbox Chooser", which is a pre-built component that developers can use to allow end-users to select any file(s) in…
  • A 500 error like that should indicate an issue on the Dropbox servers. If you're still seeing this issue, please share the code/steps to reproduce that, as well as several sample 'X-Dropbox-Request-Id' response header values. That should help us investigate. (Be sure to redact your access token though.) Thanks!
  • Adding on to what Здравко said, the following links may be helpful: * https://developers.dropbox.com/oauth-guide * https://developers.dropbox.com/dbx-file-access-guide * https://developers.dropbox.com/detecting-changes-guide * https://www.dropbox.com/developers/reference/webhooks Also, Dropbox doesn't offer a way to get…