Comments
-
The "preview" links are typically meant for manual use, where CORS wouldn't be relevant. Dropbox does also support those "dl" and "raw" parameters on preview/shared links, but that would only work in non-CORS environments, e.g., downloading a file on a server, not in a browser. As for a workaround, you would need to…
-
To clarify, are you seeing the NullReferenceException in addition to the "Can't find specified file" error, or are you no longer getting a NullReferenceException? Either way, is that the entirety of the error/output you're getting? Please be sure to share the whole error/output and whatever details you can if not, as it's…
-
For the sharing_list_folders error, it looks like may be due to the account having a very large amount of shared folders. We're going to look into what we may be able to do about that, but as a potential workaround, please try calling with a lower 'limit' value (the default/maximum is 1000).
-
The PKCE flow is the right choice for a client-side app, such as a desktop app. The PKCE flow can be used with or without a redirect URI. The PKCE flow eliminates the need for the app secret by instead using a code challenge/verifier. That's essentially a temporary secret generated by the app. A redirect URI can be used to…
-
Refresh tokens do not expire automatically, but they can be revoked by the app or user on demand. That means by default you do not need to get a new refresh token for an account that is already connected (unless it is explicitly revoked by the app or user). Short-lived access tokens do expire after four hours. A refresh…
-
If you use the official Dropbox API v2 .NET SDK in C#, you do not need to perform the refresh yourself. The SDK will perform the refresh automatically for you as long as you supply the credentials (the refresh token, etc.). You can find an example of getting and supplying a refresh token in the OauthBasic example…
-
That's correct, Dropbox retired support for TLS 1.0 and 1.1 earlier this year, so that may be the cause of this error. The Dropbox API servers now only support connections using TLS 1.2. You'll need to update your app/network client/environment to use TLS 1.2 in order to continue making Dropbox API calls. It looks like…
-
No, there's no particular limit on that.
-
Unfortunately there isn't a way to use recursive mode when listing via a shared link, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. You'd need to perform the recursion via your own code, by calling /2/files/list_folder[/continue] with each relevant sub-path, if…
-
The same applies if it's the same app. A single app-account pair can have multiple different refresh tokens. Creating a new refresh token for an app on an account does not affect existing refresh tokens for that app on that account.
-
When uploading a file to Dropbox using the Dropbox API, the resulting file name is set by the third party app using the "path' parameter, e.g., on the /2/files/upload endpoint. I see you're using a third party library to perform the upload. I can't offer support for that as it's not made by Dropbox, so please refer to the…
-
Authorizing a new application does not affect existing app authorizations. If you get a refresh token for a particular app on an account, existing refresh tokens for other apps on that same account will not be affected. Accounts can have multiple apps connected at the same time.
-
I can't offer help on the Firefox side of things, but in case you can't use a redirect URI, it is worth noting that a redirect URI is actually optional on the Dropbox OAuth app authorization flow. That is, the use of a redirect_uri on /oauth2/authorize is not actually required; it's optional when using the code flow. If it…
-
@"ariod" The Dropbox website may be using different options/capabilities. If something on the API isn't working as expected for you, please share the specific steps/code to reproduce the issue and the unexpected output, as well as an example of what you do expect, so we can take a look. Feel free to open a ticket here if…
-
As Здравко said, as long as you provide the required credentials, the Dropbox .NET SDK will handle the refresh process for you automatically. I see you've already mentioned the example of getting and using a refresh token in the OauthBasic example (non-PKCE, meant for server-side apps); there's also the OAuthPKCE example…
-
Make sure you're retrieving and processing all of the pages from ListFolderAsync and ListFolderContinueAsync. You're not guaranteed to get everything back by just calling each one once. You need to keep calling ListFolderContinueAsync with the latest cursor until ListFolderResult.hasMore is false to be sure you've…
-
I see you've also posted this in a new thread, so I'll follow up with you there. For future reference, please note it is not necessary to post the same question in multiple threads.
-
As discussed in the other thread, for non-downloadable files like this, you should use the "export" functionality instead. In the .NET SDK, that's available as ExportAsync.
-
@"mansi2821" I see you've also posted this in a new thread, so I'll follow up with you there. For future reference, please note it is not necessary to post the same question in multiple threads.
-
That's correct, the official Dropbox .NET SDK does not offer a way to retrieve the latest short-lived access token that it has, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. That's not needed for the operation of the .NET SDK though. You don't actually need to…
-
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 Dropbox 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 refresh…
-
I see, thanks for the additional information. Unfortunately the Dropbox Chooser doesn't support direct links for folders, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. And Dropbox shared links on www.dropbox.com themselves unfortunately don't support CORS, so…
-
To list all files/folders under an account, you can use files_list_folder and files_list_folder_continue, specifying recursive=True and path="" (the empty string) on files_list_folder. You can do so for each team member, but be aware that there may be duplication if you do so, since members may have shared folders and/or…
-
The issue for sharing_list_folders is currently open with engineering, but I don't have an update on it yet. I've also opened the issue for sharing_list_shared_links and will follow up here with any updates on that as well.
-
For a user not on a team with a team space, you can just use sharing_list_shared_links, without setting the path root, to get all the shared links for that user, since their member folder is their root anyway. For a user on a team with a team space, you should still use sharing_list_shared_links, but you would need to set…
-
Thanks for checking. Please do use sharing_list_shared_links instead. (The sharing_get_shared_links method is deprecated in favor of sharing_list_shared_links.)
-
Thanks! I see this one is for sharing_get_shared_links though. Can you try sharing_list_shared_links and let me know if that fails or not?
-
Could you share the same sort of output showing a request ID for that one as well? Thanks in advance!
-
You can use the Dropbox API to list the shared links for a user. In the Python SDK, you should use sharing_list_shared_links. Note that by default though, that only lists links in the user's member folder. If the user is on a team with a team space, and you need to list their shared links in the team space, you'd need to…
-
It looks like this operation is failing on the server. We'll look into it and I'll follow up here once I have an update for you.