Greg-DB Dropbox Community Moderator

Comments

  • I don't have a sample of applying encryption client-side unfortunately. Exactly how you apply client-side encryption would be unrelated to the Dropbox API itself , so you may want to refer to general encryption utilities/documentation, or consult with a security professional.
  • [Cross-linking for reference: https://stackoverflow.com/questions/50656407/dropbox-upload-file-to-public-file-request-with-javascript ] The Dropbox API doesn't offer a way to programmatically upload to file requests, but I'll pass this along as a feature request.
  • Thanks for confirming that. No, unfortunately there aren't any techniques for speeding this up, but I'll pass this along as feedback.
  • Thanks for the feedback! Dropbox doesn't offer a way to prevent third party apps with full access from accessing certain content like this, but I'll pass this along as a feature request. (The "app folder" permission is meant to work in the other direction, in that it prevents an app with the app folder permission from…
  • The SDK/API should just receive and return the file data exactly as you supply it. If this isn't working as expected, please share some sample code and output so we can take a look.
  • It sounds like you're not using a "team-linked" app (i.e., an app registered for the "Dropbox Business API"). The Dropbox-API-Select-User header is only meant for team-linked apps. Since you're using a "user-linked" app (i.e., an app registered for the "Dropbox API"), you should remove the Dropbox-API-Select-User header.
  • Hi Keith, increasing how much nesting there is could certainly have an impact on performance. Are you using the 'recursive' option on listFolder though, or are you calling listFolder/listFolderContinue for each folder and subfolder? If you're not using 'recursive=true' please try that out to see if it works faster in your…
  • 1. No, the API doesn't offer a way to get separate member-specific access tokens for a Dropbox Business API app, but I'll pass this along as a feature request. 2. If the app is registered for the "Dropbox API" with the "Full Dropbox" permission, it can be authorized by any user (whether on a team or not, and whether a team…
  • To share a folder using the .NET SDK, you should use the ShareFolderAsync method. Then, you can use the AddFolderMemberAsync method to invite users to it, e.g., by specifying their email in a MemberSelector.Email in an AddMember. I'm afraid I don't have sample code for this, but you would use the same dbx client, and…
  • The path to a shared folder would be the 'path_lower' value for the FolderMetadata object for the folder, e.g., as returned by /2/files/list_folder. The id of a folder would be the 'id' value for the FolderMetadata object for the folder, e.g., as returned by /2/files/list_folder. The shared folder ID would be the…
  • As you mentioned, this is probably more of a question about handling data in JavaScript then about the Dropbox API itself. (It sounds like you have a good idea of how to use list_folder already. Make sure you do check has_more and call back to list_folder_continue if/as necessary though.) I don't believe we have any sample…
  • Yes, you can list the contents of shared folders mounted in an account using the /2/files/list_folder[/continue] endpoints like any other folder. You have a few options for doing so: * by full path in the 'path' parameter, e.g.: "/path/to/shared/folder" * by folder ID in the 'path' parameter, e.g.: "id:abcd1234" (where…
  • @"OneLoginAdmin" This endpoint now supports Dropbox Business API apps.
  • In that case, you can use /2/sharing/list_shared_links to look up the shared links first: https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links
  • You'll need to have access to the account to make any changes to it, e.g., to modify or revoke any existing shared links. If you still have an active access token for the account, e.g., the one you used to make the links originally, that will be sufficient. You can revoke existing shared links using…
  • There is a 5 minute timeout, in that if it takes longer than 5 minutes to download the file from the provided URL, the download will fail. Might that be the issue? If you're seeing unexpected failures, feel free to open a ticket with some sample job IDs and we can look into it: https://www.dropbox.com/developers/contact
  • @"tyni02" You can contact support here: https://www.dropbox.com/support --- Puede contactar al soporte aquí: https://www.dropbox.com/support
  • To set a password, you need to set the 'requested_visibility' to 'password'. So, in your example, that would look like: --data '{"url":"https://www.dropbox.com/sh/rjg3ms4tkca69XX/AABQP1tMaxHjUey4b8mQlg9XX?dl=0","settings":{"link_password":"zzz","requested_visibility":{".tag":"password"}}}'
  • Thanks! It sounds like you're referring to the behavior of the Dropbox OAuth app authorization flow where, if the user has already authorized your app, then they may be automatically redirected back to your app instead of having to provide explicit authorization again. (This is when the browser would presented momentarily,…
  • You are not supposed to get the same access token on different app authorizations. Each time you go through the flow, you will get a different one. You generally should store and re-use the access token you get so that the user doesn't have to process the app authorization flow every time. Can you elaborate on the issue…
  • Regarding the issue with not being able to log in, it's likely because the webviewer you're using is not officially supported by the Dropbox web site. You should use the system browser, instead of a web view, per the documentation. The 401 issue is because you're attempting to use an "authorization code" as your "access…
  • Thanks for pointing that out! I'll ask the team to update the documentation to clarify that.
  • To list every file and folder, you can use the "recursive" option for list_folder. E.g., with the Python SDK, call files_list_folder with path="" and recursive=True. Make sure you also keep calling back to files_list_folder_continue if/as necessary, as indicates by the has_more value in the result.
  • To change the password for an existing shared link for a folder, e.g., created via create_shared_link_with_settings, you should use modify_shared_link_settings.
  • That's the expected behavior. Downloading the root folder is not supported unfortunately, but I'll pass this along as a feature request. 
  • @"Jaryn" No, I don't have an update on this yet.
  • Is the namespace ID for a "team space"? If so, you will need to use the the Dropbox-API-Path-Root header to access it. (If not, please open an API ticket with details so we can check on this for you.)
  • You're missing a few parameters that are necessary for the /oauth2/authorize page. (You should be getting a detailed error message at the bottom of that page when you access it like this.) You can find the full documentation for the required and optional parameters here:…
  • @"NLOG" The user will always need to sign in to Dropbox in order to authorize your app. That applies to your own account, e.g., when signing in to Dropbox to access the app's page on the App Console to use the "Generate" button, or other end-user accounts, when using the OAuth flow. Access tokens don't effectively expire…
  • Hi, thanks for the post! Dropbox offers an API you can use to upload and download arbitrary files, and while Dropbox of course works to maintain a high level of security, ultimately the decision to use Dropbox (or not) for any particular scenario is up to you as the developer. We can't provide general legal or security…