Greg-DB Dropbox Community Moderator

Comments

  • The ListFolder interface is paginated, and so you aren't guaranteed to get everything returned in one call like this. You'll need to also implement the ListFolderContinueAsync method. Please refer to the ListFolderAsync documentation for more information. I also recommend reading the File Access Guide and Team Files Guide.
  • Dropbox doesn't offer an FTP interface, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. Dropbox does offer an API that works over HTTPS though that you can use to programmatically upload and download files, among other operations. You can find everything you need…
    in FTP Comment by Greg-DB May 2021
  • @"9krausec" I don't believe we have a sample of this in Python handy unfortunately. I see you have an open ticket with support about this though so we'll take a look at that and follow up with you there.
  • Are you using an API app registered with the "app folder" access type? There's currently 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.
  • When supplying a particular path, the /2/sharing/list_shared_links endpoint "returns a list of all shared links that allow access to the given path - direct links to the given path and links to parent folders of the given path". So, if you call it for a specific file and see a folder link, that means that there's a shared…
  • Taking a look at the commit history for that third party library, I see that the last commit was in 2017, which was before the new functionality was added to the API, so it does not appear that library has been updated to use the new functionality. Anyway, I can't offer insight on what factors went in to deciding what SDKs…
  • All Dropbox API calls use HTTPS, so they go to port 443 on the relevant Dropbox API servers, which, for uploading and downloading file content via the official .NET SDK, is content.dropboxapi.com. As for the error you're getting, can you let me know what version number of the SDK you have installed, and share the relevant…
  • @"9krausec" That indicates that the job is not done yet. You'll need to poll it until it's complete. That is, call it once every few seconds until it returns the result.
  • @"9krausec" You'll need to poll files_upload_session_finish_batch_check to check on the result of the job. If you're not seeing anything uploaded, something must have failed, and the result from files_upload_session_finish_batch_check should tell you what it was.
  • @"Vasilinka" Thanks for the additional feedback. I can't offer much more insight on the specifics of what went in to determining policies, but you can find the documentation for this here. And yes, this thread is publicly available here.
  • You can actually do either. If you want it to default to whatever is set for the app on the App Console at that point in time, you should pass in null. If you want to be specifically defined by the code, even if additional scopes are added to the App Console, you should pass the specific desired scope list. (Note that you…
  • The 'missing_scope' error indicates that while the app is permitted to use that scope, the particular access token you're using to make the API call does not have that scope granted. Also, be aware that just adding a scope to your app via the App Console does not retroactively grant that scope to existing access tokens.…
  • @"9krausec" Thanks for following up with the clarification. First, note that one "upload session" is required per file to be uploaded. So, you'd need to call files_upload_session_start once per file (so, 20 total in this case), and files_upload_session_append_v2 zero or more times per file (depending on each file's size).…
  • @"Vasilinka" I can't speak to Google's own definitions or usage, but for the purposes of Dropbox's OAuth app authorization flow, WebAuthenticationBroker is considered a kind of webview and is not supported.
  • The /2/sharing/list_shared_links endpoint will return existing shared links for files and folders in the connected account. Note that normal files don't have shared links created for them by default, so there won't be any returned for a file if one hasn't been explicitly created. Some special kinds of items though, such as…
  • Oh I see, thanks for clarifying. That's expected then. Technically, a password applies to a shared link, not a folder itself. And, supplying a shared link to the parent folder enables access to anything in that folder. Any shared links that may or may not exist for the items underneath, and the settings for those other…
  • I believe just the settings on the supplied shared link matter, not a parent folder. It may be worth double checking that you've set the password on the same shared link as you've supplied to the Embedder. Also, another thing to note is that it will not prompt for the password again if you've already supplied the password…
  • Are you signed in to the account that owns that shared link? If so it won't prompt for the password.
  • @"Vasilinka" You can find Google's post here: https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html
  • No, unfortunately Dropbox doesn't offer an external interface for accessing this information, or any other more detailed information available, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
  • Thanks! I can't make any promises, but I'll ask the team to see if we can suppress those. As a workaround, you can use the "Default levels" menu seen in your screenshot to hide different types of messages, such as warnings like this.
  • The files_export method is only meant for use with files actually within the connected account. It will not be able to find files that are not within the connected account, such as files that the account only has access to as a "received" file. I'll send this along as a feature request for a way to do this, but I can't…
  • Web views often don't use the same browser engine as the system browser installed on the system, and so get out of date and are prone to compatibility issues like this. The Dropbox OAuth app authorization flow is accordingly not supported in web views like this. You should only process it in a supported system browser. You…
  • I can't offer help for Django in particular, as that's made by Dropbox, but I'll be happy to offer whatever guidance I can in general. First, I'll send this along as a feature request to make DropboxOAuth2Flow serializable though I can't promise if or when that might be implemented. Anyway, you generally shouldn't need to…
  • Yes, you should use files_export to export files that can't be downloaded.
  • Thanks for the feedback! I'll share this with the team to see if we can improve the SDK documentation around this.
  • No, you don't really need to do so, since the refresh token doesn't change.
  • By setting the expiration to -1, that sample forces the client to perform a refresh immediately (e.g., in case the actual expiration of the current short-lived access token is not known, or the stored short-lived access token is presumed to be old). And no, when supplying a refresh token like this, the client will not…
  • No, unfortunately the Dropbox API doesn't offer a way to do that, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
  • The team has received your feedback, but there currently are no plans to change this policy. I'll let you know if/when that changes.