Greg-DB Dropbox Community Moderator

Comments

  • @"dghatch" My colleague was asking about the response headers, but it looks like you've printed out the request headers here. In any case, I've also tried the code you shared here, plugging in my own access token and path, and as long as I fix the "Content-Type" as my colleague mentioned, it does work for me. (I am using…
  • We can't offer help with Wix itself, but Dropbox does offer an API you can use for listing, uploading, and downloading files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here: https://www.dropbox.com/developers You can use that…
  • @"vuloan9407" As Rich noted, it sounds like this is because Dropbox now returns short-lived access tokens, which are only valid for several hours. Dropbox is in the process of switching to only issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find more information…
  • @"karanag" In your code, you're sending the data in your 'content' variable, which just contains the string '"@" + imagePath', not the actual file data at that path. In the examples in the Dropbox API documentation, the "@" is a way of telling curl on the command line to read from the local filesystem at that path. That…
  • @"RJ77" The webhook notification indicates that the account has had changes somewhere in the account, so you can then use the corresponding access token for that account to call /2/files/list_folder[/continue] (or corresponding methods in whatever SDK/library you're using, if any) to see what exactly changed. So, make sure…
  • That's correct; the same example also shows how to use upload sessions for large files.
  • @"senthilnathan205" Yes, as Здравко noted, if you need access for more than four hours, you should request and use a refresh token as well. For the official Dropbox API v2 .NET SDK, you can find an example of getting and using a refresh token in the OauthBasic example (non-PKCE, meant for server-side apps) as well as in…
  • @"fangzefunny" Здравко is correct; you should check the response or error for the call, which you are currently ignoring. You can find an example of handling the response and error for an upload call with the Dropbox API v2 JavaScript SDK here.
  • The 5,000 shared folder number mentioned in that help article is a more general guideline, not specifically about the API or list_folder functionality in particular. The performance of any particular API endpoint may vary, and as discussed the list_folder performance will depend on a variety of factors, which can vary over…
  • You can pass the scopes explicitly to the scopeRequest parameter on authorizeFromControllerV2, but it's not technically required. Once you've migrated an app to scopes, the scopes you have selected will be the default and maximum scopes that can be used by that app. If you pass pass nil to the scopeRequest parameter on…
  • @"Conners" The blog post you referred to is very old and now out of date. As Здравко noted, you should now use /2/users/get_current_account instead of /1/account/info. And as they said, app's with the app folder access type cannot use shared folder functionality, such as /2/sharing/add_folder_member. You would need to…
  • Yes, if you have any users currently or recently using authorizeFromController, they would be receiving only short-lived access tokens, so you may want to catch that error and prompt them to reauthorize the app using authorizeFromControllerV2 instead in order to get a refresh token. And yes, you can migrate existing app…
  • @"kuznetsovvl" No, unfortunately I don't have any changes to report for this feature request.
  • @"Bob S.15" Thanks for following up with the additional information. As you found, Dropbox is in the process of switching to only issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find more information on this migration here. (We did send notice of this migration…
  • Unfortunately we can't provide any absolute guarantee of your app's compliance based on this hypothetical description, so you should be sure to review all the guidelines and terms before developing an app: * https://www.dropbox.com/developers/reference/tos * https://www.dropbox.com/developers/reference/developer-guide *…
  • Thanks for the feedback. It looks like this is related to your earlier thread. As discussed there, this will be related to the number of files, folders, and namespaces, as well as the amount of activity. Cursor length will also depend somewhat on the length of folder names/paths. Unfortunately, there isn't a specific limit…
  • @"senthilnathan205" I just tried this code, plugging in my own values and access token, with v6.25.0 of the library, and it ran successfully for me. Is that the entirety of the error output? Also, is there anything on your network connection, such as a proxy, firewall, VPN, anti-virus, etc., that may be interfering with…
  • I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: * the name and version number of the platform and SDK you are using * the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s) * the…
  • I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: * the name and version number of the platform and SDK/library you are using, if any * the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or…
  • You can reconnect an existing application (in development mode or not) the same way you did originally. E.g., you can use the "Generate" button on the app's page on the App Console to connect it to your own account, or otherwise use the OAuth flow.
  • It looks like there wasn't an error, so the files should have been successfully saved to the home folder. I can't offer help with interacting with the filesystem in your environment though, as that's made by Dropbox, so I recommend referring to the documentation for your environment for that. For reference, you can see how…
  • Using the files_download_to_file method is a valid way to download a file from Dropbox to your local filesystem. When calling that, the first parameter 'download_path' should be the local filesystem path where you want to save the downloaded file. Regardless of where you're running this, that first parameter is how you…
  • It sounds like you're using some sort of web view/embedded browser in your environment. Unfortunately the Dropbox web site doesn't support such web views/embedded browsers, and the Dropbox OAuth app authorization flow must be processed in a supported system browser. You can find more information about this in the…
  • I'm not sure I understand your message. You mentioned paths with a "c:/" prefix, which seems to indicate a local Windows filesystem path, not a Dropbox path. Dropbox itself does not use letter-based drive roots like "c:". For information on interacting with and detecting changes on the Dropbox filesystem, I recommend…
  • I'm closing this thread as a duplicate of this one.
  • Thanks for the report! It sounds like you've connected the account to the app without the "files.metadata.read" scope, which is required for receiving the relevant information in the webhook notification. (I'll also ask the team to see if we can update the implementation to skip sending empty notifications like this to…
  • No, unfortunately the Dropbox API doesn't offer a method for that for heic files.
  • Thanks for the post! I'll pass this along as a feature request, but I can't promise if or when that might be implemented.
  • You can find the methods available in the Dropbox Java SDK in its documentation here. For example, to list a team's groups, you would use groupsList and groupsListContinue. And to list the members of a group, you would use groupsMembersList and groupsMembersListContinue.