Greg-DB Dropbox Community Moderator

Comments

  • The "direct" links do expire after four hours, but the "preview" links shouldn't expire automatically. The "preview" links can be invalidated manually, e.g., by revoking the link or deleting the file. If you're seeing a "preview" link break unexpectedly, would you be able to share a sample so we can investigate? If so,…
  • Dropbox is switching to issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens, so this is expected. You can find more information on this migration here. That being the case, you will get a short-lived access token by default. (You can identify a short-lived access token by the…
  • Dropbox is switching to issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. Developers of existing third party apps received advanced noted of this change by email. More information can be found here. Apps can still get long-term access by requesting "offline" access though,…
  • Thanks for writing this up. First, for reference, can you let me know what version of SwiftyDropbox you have installed? If you're not using the latest version, currently v8.2.1, please upgrade to that and let me know if you're still seeing this issue. If so, please also share the snippet of code you're running to do the…
  • It looks like the different clients are producing different requests. For the requests that are failing with a 400 status code, print out the raw response body. The response body should contain a more useful error message indicating what the issue is. For the call where you are getting that "%PDF-1.4..." data back, that…
  • The API v2 JavaScript SDK supports both browser and node environments, so I recommend checking out that code.
  • The S256 method can be difficult to implement exactly correctly in code, and that tool you linked to is made by a third party so I can't say if it's producing exactly the format required for the OAuth 2 flow. You can refer to the code in the official Dropbox API v2 JavaScript SDK where this is done though. Alternatively,…
  • Thanks! That's helpful. I believe I see what's causing this now. Can you check what /oauth2/authorize URL you're using? Since you're trying to use the PKCE flow, you need to include the code_challenge and code_challenge_method parameters. If you don't include those though, this effectively becomes the non-PKCE flow, in…
  • Using that payload (though plugging in my own test client ID since you redacted yours), I still didn't get that error on https://reqbin.com/req/v0crmky0/rest-api-post-example . I instead got "code doesn't exist or has expired" as expected, since authorization codes are single-use and expire after a few minutes. Here's a…
  • Thanks. In particular I was most looking for the "Content-Type" header which will affect how the body is read, but that seems to be set correctly in your screenshot. Were you also setting that to "application/x-www-form-urlencoded;charset=UTF-8" when using https://reqbin.com/req/v0crmky0/rest-api-post-example ? That could…
  • Здравко is correct, it looks like your code/client is just sending the wrong "Content-Type" request header, and these endpoints don't take any parameters, so that header isn't required anyway. You mentioned you are attempting to set the header correctly, but it's possible whatever HTTPS client you're using is overriding…
  • Could you show both the headers and body for both the request and response? The Chrome developer tools should enable you to see both.
  • To clarify, Dropbox is now migrating to issuing only short-lived access tokens. While we're not invalidating existing long-lived access tokens, we are beginning to phase out the ability to create new ones. While that change began on September 30th, we're releasing it gradually, so you may not have seen all app(s) affected…
  • No, unfortunately I don't believe there's any channel or document I can refer you to for a definitive theoretical maximum for this.
  • Could you elaborate on what you mean when you say "according to the de tools all parameters are sent"? For instance, could you show the request (headers and body) that your client is sending? Be sure to redact any sensitive values themselves though. If a parameter was being sent in the correct format but had an incorrect…
  • Dropbox doesn't intentionally throttle connections, but I don't have any information on how much bandwidth one could theoretically get. For optimizing uploading via the API, be sure to read the Performance Guide though.
  • Your connection speed to Dropbox depends on a number of factors, such as the routing you get between your ISP and our servers, and may be slower than your ISP's rated speeds. That being the case, unfortunately I can't guarantee any particular performance characteristics.
  • @"Steve J.5" Thanks for the feedback. You can find the latest update at the top of the Paper Migration Guide. I don't have any other news to add to that.
  • Dropbox is switching to issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. Developers of existing third party apps received advanced noted of this change by email. More information can be found here. Apps can still get long-term access by requesting "offline" access though,…
  • Dropbox unfortunately does not support a way to directly get a link to a folder from an ID like this exactly, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. There are some things you may work, though they may require some programming. If the folder happens to be…
  • In addition to the webhooks documentation, I recommend reading the File Access Guide and Detecting Changes Guide for information on interacting with and monitoring the Dropbox file system. If you still have any questions or if something isn't working as expected, please share the details and we'll be happy to help.
  • If you are referring to processing the OAuth app authorization flow, note that each time you do so, you will get a different access token (and refresh token, if you're requesting one). These values are expected to be different each time. You only need to process this flow when needed though. For instance, if you are…
  • @"ancso" Is this the exact code you're running? I just gave it a try and it works for me when I plug in my own client_id, access_code, and code_verifier. (For reference, redirect_uri is optional in this flow, so that shouldn't be an issue.) The "No auth function available for given request" error should indicate that the…
  • Thanks for the report! Like in the other thread you linked to, this 504 error can be related to these operations taking a long time due to a large number of files and/or a large amount of file activity in the affected account(s). That can vary over time due to account activity and other such factors though. We'll look into…
  • I can't offer any other solutions using the Embedder unfortunately. You can find all of the supported options for the Embedder in the Embedder documentation, but unfortunately there's nothing for programmatically enabling a print button or accessing the embedded content like that. If you need more control over the…
  • Unfortunately, the Dropbox Embedder doesn't have an option for that, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
  • The DropboxTeam.as_admin method returns a Dropbox object; it doesn't modify the existing DropboxTeam object (dbx in your latest snippet here). So, the code in your latest snippet won't allow you to call files_list_folder on that 'dbx' object. You should save the returned Dropbox object and use that instead.
  • If you're getting 'reset' back from /2/sharing/list_shared_links, that means that the cursor you're supplying is no longer valid. You'll need to call back to /2/sharing/list_shared_links without that cursor to reset. When you call back, you can omit both the 'cursor' and 'path' parameters to list all the available shared…
  • This error message in particular is referring to specifying what account on the Business team to operate on behalf of. For reference, when using any "team scopes", the resulting access token is connected to an entire Dropbox Business team, not an individual account. So, when using a team-scoped access token to access…
  • @"gagsbh" You should set close=true on the last call to on upload session where you need to upload data for that upload session. That might actually be on a UploadSessionStartAsync call (for small files), or a UploadSessionAppendV2Async call, or a UploadSessionFinishAsync call, if not using UploadSessionFinishBatchAsync.…