Greg-DB Dropbox Community Moderator

Comments

  • 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 steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s) * the full text of any error or unexpected output * 5-10 sample…
  • @"Takashi Homma" It sounds like you're referring to the /home and /work routes on the Dropbox web site. The Dropbox API doesn't use those; for information on interacting with different files/folders on the Dropbox API, I recommend reading the File Access Guide and Team Files Guide.
  • @"skezh1" Thanks for the report. The thread you originally posted in was old, so I've moved this to a new thread. There hasn't been a new release of the Dropbox JavaScript SDK recently, and I'm not seeing this issue in my own testing now. I'll be happy to help with any issues you're having with the Dropbox API/SDK, but…
  • These values may encode information about the relevant account, so you may notice patterns like this, but your app should not expect or rely on any particular format or pattern. Your app should only use the authorization code as supplied. You should not attempt to decode or otherwise extract information from the…
  • The Dropbox API authorization functionality includes a number of different types of values, including authorization codes, access tokens, and refresh tokens. You can find the documentation for all of that here. Each of those are only specified as "String" without a more specific format guaranteed, so make sure you're not…
  • The raw=1 functionality itself should still work, but there's no particular guarantee on its use with an embed or iframe HTML element. You can find the official documentation for that here; that doesn't have any mention of iframe or embed. That said, when I tried the sample page you shared on iOS, it did actually show the…
  • You can find information on the limits for Dropbox links here.
  • You can use the Dropbox .NET SDK in C# to perform these calls. You can find the documentation for the corresponding methods in that SDK here.
  • There are technically different types of shared links, and the exact behavior of this may vary for the different types. In any case, the API doesn't offer an option to explicitly control that behavior, but you can remove a shared link on demand by calling /2/sharing/revoke_shared_link.
  • Yes, the Dropbox API does have several endpoints for working with legal holds. You can find the documentation for them starting here: https://www.dropbox.com/developers/documentation/http/teams#team-legal_holds-create_policy
  • 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. Dropbox issues short-lived access tokens, which expire after a few hours. Apps can get…
  • I don't believe we have example code for using that. Perhaps you could share the relevant piece of code you have so far and show what you're stuck on (e.g., any unexpected error/output)? Be sure to redact any actual access/refresh tokens though.
  • The reauthorizeClient method would set the authorizedClient to use an access token that's already been stored. If you haven't stored the relevant access token, then that won't work. (The built-in OAuth functionality would automatically store the access token, but that won't occur automatically if you copied it from another…
  • @"mikechiu" Apologies for the trouble with the forum. It looks like your post got stuck in the spam filter. Anyway, we'll look into this API issue and follow up here once we have an update. Thanks!
  • @"anas saifi" As Здравко said, those "preview" shared links on www.dropbox.com point to a preview HTML page, not the file data itself, and do not support CORS. If you want to directly access the file data using CORS, you can use the "direct" link type (instead of "preview") when setting up the Chooser.
  • @"rashi" Здравко is correct; the Dropbox API currently only supports TLS 1.2, not 1.3, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
  • The beta mentioned above has been promoted to stable release. Read more about it here: https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Major-SwiftyDropbox-update-available/td-p/737816
  • The beta mentioned above has been promoted to stable release. Read more about it here: https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Major-SwiftyDropbox-update-available/td-p/737816
  • @"anas saifi" I've moved your post to its own thread, as the original thread did not mention an issue with a CORS error. Please share the details of the issue, such as the steps/code to reproduce the issue, as well as the full error/output you're getting so we can take a look.
  • Thanks for the report. Can you let me know: * Are you referring to using the /2/files/download_zip endpoint? * Does it always fail after 2013265920 bytes, or does that number vary? * Does it always fail after a specific amount of time? If so, how long is that?
  • @"rahulsharma1902" As Здравко said, Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is now issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find more information on this migration here. Apps can still get long-term…
  • @"sarshavs" The /2/files/move_v2 endpoint only supports the Dropbox-API-Select-Admin "Team Admin" mode, meaning it can "can access content of team folders and team spaces but not the team members' home namespaces". That means you can't use /2/files/move_v2 to administratively move a file from the user's home folder. That…
  • @"mikechiu" If you can share a sample like Здравко described, that would be helpful. Thanks!
  • @"yatin_manchanda" This is still accurate; the Dropbox API still doesn't offer an option for listing subfolders only.
  • @"rahulsharma1902" To add on to what Здравко said, if you need to modify a shared link, refer to this help article.
  • @"YanivB" I see you're getting an empty list back from listFolder, so it looks like you may be using an app with the "app folder" access type. Apps with the app folder access type can only access the app folder automatically created for it. App folders are empty by default, so you would initially get an empty listing like…
  • I'm not sure I understand your question. If you need help with the Dropbox API, please clarify exactly what you're stuck on.
  • @"rdyar" If you're using an official Dropbox SDK, like the official Dropbox JavaScript SDK you're using in the last piece of code you shared, you don't need to perform the "grant_type=refresh_token" step yourself. If you pass the necessary credentials (refresh token and app key/secret) to the SDK, it will automatically…
  • @"ms97" If you perform an upload using the Dropbox API and it is automatically rooted in the app folder, that means you are using an access token for the app for that app folder. Registering and authorizing a new app with full Dropbox access won't change existing access tokens (or refresh tokens); existing access tokens…
  • @"ms97" Здравко is correct; you cannot change the access type ("app folder" versus "full Dropbox") on an existing app. You can find more information on access types here. You can register a new app with full Dropbox access here.