Comments
-
That may not be helpful as we wouldn't be able to inspect or debug the code directly. I've put together a small sample project using the code snippets you provided here, just filling in the gaps as necessary. It doesn't reproduce the issue for me. (It retains the authorizedClient and can successfully make calls even after…
-
The file revision history doesn't follow a file when it is moved to another path. You can get the file revision history for a file across moves though by setting "mode" to "id" instead of "path" though. Refer to the /2/files/list_revisions documentation for more information.
-
The authorizedClient should only be nil if the clients were reset, or if after a relaunch the SDK wasn't able to retrieve the token from the Keychain. There isn't anything else you need to be doing to keep the authorizedClient available. Calling authorizeFromControllerV2 when you don't have an authorizedClient and need to…
-
There is a refreshAccessToken method, but you don't need to call that. (That's used internally, or if you want to switch to a smaller subset of scopes.) The SDK automatically performs the normal refresh process for you. It doesn't sound like that's the issue anyway though, as the local client wouldn't get set to nil if the…
-
Dropbox unfortunately does not support downloading the root folder like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. You'll need to specify non-root paths instead.
-
The "redirect_uri mismatch" error indicates that this call failed because the redirect_uri used on /oauth2/authorize, which is the redirectUri parameter on GetAuthorizeUri in the .NET SDK, to get that authorization code does not match the redirect_uri used when calling /oauth2/token, which is the redirectUri parameter on…
-
@"Kloss" The original "-u" option shown earlier in this thread is an option for curl for specifying the Basic credentials (which in this case should be the app key and secret). It looks like in your environment it was getting sent to Invoke-WebRequest, where "-u" is ambiguous. I'm glad to hear you already sorted that out.…
-
There isn't anything additional you should/can configure for this. Dropbox will automatically redirect through the flow when it can, but there are some exceptions. For example, it will only do so when an https:// redirect URI is supplied; it won't automatically redirect to http://. Also, if the user has linked accounts,…
-
As you mentioned, when processing the OAuth app authorization flow in an app using ObjectiveDropboxOfficial, SFSafariViewController is used. The web session in SFSafariViewController (such as whether the user is already signed in to www.dropbox.com) is separate from whether or not the ObjectiveDropboxOfficial SDK has any…
-
The Dropbox API doesn't offer a call specifically to just create an empty file, but you can call /file/upload with an empty body to make an empty file (that is, with a size of 0). A file with a size of 0 isn't a valid .docx file though, so if you mean you want to upload a valid .docx document that just doesn't contain any…
-
Thanks for clarifying. That's correct, the refresh process should be handled for you automatically as long as you've processed the authorization flow using authorizeFromControllerV2. Even if you did only have a short-lived access token stored though, or if the refresh process failed and the SDK wasn't able to get a new…
-
Can you elaborate on what you mean when you say "the connection is interrupted"? Do you get a particular error? If so, please share it here. Or, do you mean that DropboxClientsManager.authorizedClient just becomes nil at that point?
-
@"maxior" Здравко is correct. Additionally, you may find the File Access Guide and Detecting Changes Guide useful
-
A 413 error indicates that the request failed because the payload was too large. The filesUploadSessionFinishBatchV2 method in particular is a way to finish multiple upload sessions at once, and does not itself accept file data. That being the case, don't set 'contents' when calling filesUploadSessionFinishBatchV2.
-
Any user account can create and own multiple API apps. All of the apps owned by the currently signed in account can be found on the App Console.
-
To integrate with the Dropbox API from Java, we recommend using the official Dropbox Java SDK. You can find instructions and examples for using that there. Alternatively, you can use the HTTPS endpoints directly if you prefer. That documentation shows all of the details for the request/response formatting and parameters…
-
@"Pelleman" It is not possible to fully automate the OAuth process where the user chooses to authorize the app and the app then receives the resulting access token and optional refresh token. This needs to be done manually by the user once. It's not possible to programmatically get an access token or refresh token using…
-
@"vinke" Please print out the response body, as it should contain a more useful error message. While access tokens can be used to access multiple different endpoints, different endpoints do require different scopes, so it's possible that an access token can access one endpoint but not another. Also, be aware that just…
-
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…
-
The Dropbox API does not impose a speed limit/cap, and this does not vary by plan. Your connection speed to Dropbox depends on the routing you get between your ISP and our servers, and may be slower than your ISP's rated speeds. Sometimes resetting or retrying your connection gets you a different route and better speeds,…
-
Yes, the search results are subject to delays and staleness due to indexing/caching, which can result in this behavior for moved files. This should automatically catch up after a short time. For more definitive results not subject to this, you may want to use /2/files/list_folder[/continue] instead.
-
@"Edneth_Girao" This is open with the team, but I don't have any news yet. I'll follow up here once I do.
-
The progress should now be getting reported properly again. Note that progress will not be reported if the source URL does not return Content-Length.
-
In this case, this would be because you're using asAdmin as to administratively access team content on behalf of an admin, who may not necessarily have that content mounted in their account. To get the path values, you'll need to make the call in a context where the content is mounted, such as by doing any of the…
-
If the path fields aren't set, e.g., in the metadata for an item returned by /2/files/list_folder[/continue] or /2/sharing/get_file_metadata, that indicates that the item isn't "mounted" in the account/root for the call, and so does not have a path to include. The File Access Guide, Sharing Guide, and Team Files Guide may…
-
@"lucaortis" As Здравко pointed out, you have a double leading slash, which is not a valid path format. Specifically, you're supplying the path "/Applicazioni/Costumer Manager Files/Ore.txt", but then are adding an extra leading slash when you format it with your code: $TargetFilePath="/$testFile"
-
@"alicera" In addition to the method Здравко helpfully provided, you could use the /2/sharing/get_shared_link_metadata Dropbox API endpoint to retrieve the metadata for a shared link, or an error if the shared link is invalid.
-
It looks like you're attempting to download a file from Dropbox and then re-upload that file to Dropbox, but it sounds the uploaded file isn't formatted properly or doesn't contain the expected data and so is not successfully displaying. Dropbox doesn't apply any additional processing or encoding to uploads, so you should…
-
Dropbox now supports OpenID Connect. Check out our guide here for more information: https://developers.dropbox.com/oidc-guide
-
Dropbox now supports OpenID Connect. Check out our guide here for more information: https://developers.dropbox.com/oidc-guide