Greg-DB Dropbox Community Moderator

Comments

  • Yes, this limit behavior applies to using both /2/files/list_folder and /2/files/list_folder/continue at any time.
  • You should just use DbxDownloader.close when you're finished with the downloader (which will close the InputStream returned by getInputStream for you), in addition to closing any streams you opened yourself.
  • I see, thanks for clarifying. When you make a copy of a folder, such as by using CopyV2Async, you're only making a distinct copy of the folder and its contents; it does not copy over the sharing properties of the original. The resulting copy of the folder will inherit the sharing properties of its shared parent, if any.…
  • I'm not sure I fully understand your question, so if not, please share some more specific details as an example so I can review it better. You can share privately here if you prefer. From your description though, note that if the result of GetMetadataAsync doesn't have FolderSharingInfo.SharedFolderId set, it means that…
  • The Dropbox API unfortunately doesn't offer access to those "Create new file" options, such as to create a web shortcut or new Word doc, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 
  • Apologies I didn't have a code sample for that handy, but yes, what you just shared looks like what I had in mind.
  • Thanks for the report. This sort of thing can happen when using /2/files/list_folder[/continue], and while it's not a bug, we do understand it's not ideal. The limit the client supplies is only a guideline, and the API may not always be able to actually follow it. Because of how the Dropbox filesystem works on the backend,…
  • @"HaPsantran" Thanks for the feedback!
  • @"HaPsantran" Thanks for the feedback. I don't have an update on this request but I'll add your note and follow up here if/when I have any news.
  • In the /2/files/list_folder response, what is the value of 'has_more'? If it's 'true', you need to call back to /2/files/list_folder/continue to retrieve more entries. A single call to /2/files/list_folder isn't guaranteed to return all of the results. You should always have your app check this value and call back as…
  • Dropbox doesn't offer an interface for interacting with the new Dropbox desktop app like this, such as to open a specific folder in it, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 
  • When using the Dropbox API v2 Java SDK, you can cancel an in-progress upload by using the DbxUploader.abort method. That's available on its sub-classes for various use cases, such as UploadUploader, UploadSessionStartUploader, UploadSessionAppendV2Uploader, and UploadSessionFinishUploader. For example, you can get…
  • I'm sorry to hear that trying this with a different ISP didn't help. Unfortunately, there isn't any way to configure the upload speeds you get on your Dropbox account, but you may wish to contact the developer of the app. Depending on how they've implemented the upload process, they may be some optimizations they can make…
  • Your screenshot is showing your "team space", so to access it via the API you should set the 'Dropbox-API-Path-Root' header accordingly. For example, to set the root to your team space itself, under which you can access the "Custom_team_folder" folder, you would set the root and path like this: curl -X POST…
  • Thanks for the additional information. Please note that you should never share your access token like this. I've redacted it from your post, but you should revoke the token since you shared it publicly. Anyway, you're getting this error because you're using an access token for an entire Business team to call a…
  • By default, API calls will operate inside your "member folder" (the purple folder), but you can configure them to operate in the "team space" (above the member folder) if you want. To do so, you need to set the 'Dropbox-API-Path-Root' header. You can find information on how to use that in the Namespace Guide here:…
  • @"tommy_m" The Dropbox API itself doesn't throttle connection speeds for any particular apps or users. Your connection speed to the Dropbox API depends on the routing you get between your ISP and our API servers, and may be slower than your ISP's rated speeds, or speeds you see for other applications. Sometimes resetting…
  • To upload a new file, or a new version of an existing file, with some particular file data, you can use the /2/files/upload endpoint. By the way, that's a link to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for…
  • That's correct, as you've described it, your current setup involves you embedding your access token itself in your app, not your app key or secret, since you are not using the OAuth app authorization flow. If you were to use the OAuth app authorization flow, you would need to embed your app key, if using the "token" flow,…
  • Yes, the app key and secret identify an app, and would be used in the OAuth app authorization flow. More specifically, Dropbox actually supports two forms of the OAuth app authorization flow: "code" and "token", documented here. The "code" flow is generally intended for server-side apps, and requires both the app key and…
  • While you yourself may not have revoked the token, it's possible someone who downloaded your app did. Since you embedded your access token in the app, someone could extract it from the app and then use /2/auth/token/revoke (or any other API endpoint) themselves. This is one of the reasons we don't recommend distributing…
  • No, there's nothing in this code that would invalidate the access token. Please refer to my earlier comment for a list of things that can disable an access token.
  • It sounds like you're referring to using the OAuth app authorization flow. That's the process you would implement in your app for the normal case where you have each end-user connect their own Dropbox account to receive their own access token. You can find more information in the OAuth Guide and authorization documentation…
  • No, your app being in development mode would not affect access token validity. The development mode only limits how many different Dropbox accounts can be connected to your app. Since you are only connecting your app to your one account, that isn't relevant. 
  • Setting a path root isn't required or expected when calling team-level endpoints such as team_team_folder_list. It is only supported for user-level filesystem endpoints. Further, team_team_folder_list is only for listing the team folders themselves. To list the contents of any particular folder, you should…
  • The Dropbox API get_preview endpoint does not support retrieving previews for .pdf or .jpeg files. Attempting to do so will result in this error. You can find the supported list of extensions in the documentation here: https://www.dropbox.com/developers/documentation/http/documentation#files-get_preview Some of the…
  • By default, Dropbox API access tokens for your app(s) don't expire by themselves, but there a number of different ways that a Dropbox API access token can become invalid: * the user can revoke all access tokens for an app by unlinking it on the connected apps page * any client with the access token can revoke the access…
  • @"namiqismayil" No, I don't have any updates on this. Dropbox hasn't changed the officially supported environments for the Chooser. I can't speak to what may have changed in Outlook itself though.
  • @"Ashu7878" The domain is the same for all users from all countries. I just can't promise that it won't change in the future. In general though, there isn't a way to verify the source of the link since it is shared locally in JavaScript in the client, and the client can't be trusted (since it is under the control of the…
  • @"Ashu7878" Right now, the direct links returned by the Dropbox Chooser are always on dl.dropboxusercontent.com, but that isn't officially documented or guaranteed, so I can't promise that won't change. I'll pass this along as a request to officially document/guarantee that, but I can't say if or when that might be done.