Comments
-
The best way to check if an access token is still valid with the Dropbox API is just to make a call and check the response. For example, a simple call with no side effects such as /2/users/get_current_account is a good one for this.
-
Thanks for the post! I can't make any promises, but I'll pass this along as a feature request. If there any other functionality from that route that you'd like to see in the API?
-
The partially uploaded files do not count against the user's quota. The data is cleaned up after the upload session expires, which I believe is 48 hours after it was created.
-
[Cross-linking for reference: https://stackoverflow.com/questions/41022495/how-to-retrieve-shared-link-using-dropbox-api-v-2-0-client-nuget-library-in-c ]
-
Closing as a duplicate of: https://www.dropboxforum.com/t5/API-support/Android-Core-API-search-returns-empty-list/m-p/196715#M9024
-
[Cross-linking for reference: https://www.dropboxforum.com/t5/API-support/Android-Core-API-search-returns-empty-list/m-p/196715#M9024 ] Thanks for the report! This is a known issue, and not due to the deprecation. We're looking into it.
-
Yes, as an app folder app, you can only operate on items inside the app folder. Full Dropbox apps can operate on any item in the account.
-
That looks like a bug that was fixed in version 2.1.2. Please make sure you're using the latest version of the SDK, and let me know if you're still seeing that.
-
You should be able to create a shared link for any file or folder on dropbox.com. Likewise, you should be able to create a shared link for any file or folder using the API, as long as your app can access it. (App folders can't see items outside their app folder.) Also, note that "shared links" are a different feature than…
-
You can set an expiration for a new shared link using the .NET SDK like this: var settings = new SharedLinkSettings (expires: new DateTime (2016, 12, 25)); SharedLinkMetadata sharedLinkMetadata = await this.client.Sharing.CreateSharedLinkWithSettingsAsync (path, settings); Console.WriteLine (sharedLinkMetadata.Url);…
-
If Folder_1 is a shared folder, then Folder_1 is a namespace, separate from the root namespace.
-
One thing that comes to mind is that if your app is registered for the "app folder" permission, your paths should be relative to the app's app folder, not the Dropbox root. Further, in that case you won't be able to access folders or files in the Dropbox root. Otherwise, it's ****** to say what the issue may be offhand. If…
-
[Cross-linking for reference: https://stackoverflow.com/questions/40973321/is-it-possible-to-upload-a-file-to-dropbox-api-v2-0-with-a-path ]
-
Thanks for the post Randy! I'm not too familiar with Cordova/PhoneGap, and this is a bit outside the scope of Dropbox support, so I'm afraid I can't be of much help myself, but hopefully someone else here can chime in. One thing I can note though, is that another possible (albeit non-ideal) solution is to use the "code"…
-
Hi Gabrel, the /save_url endpoint does require a path for where the file should be saved in the user's Dropbox account, including the file name, but this doesn't technically require that the app include the file extension. So, you can omit the file extension, but that would certainly be non-ideal for the user, as they'd…
-
The not_closed error is documented as: "The session must be closed before calling upload_session/finish_batch." That is, make sure you close each session, e.g., when using /2/files/upload_session/append_v2, before calling /2/files/upload_session/finish_batch.
-
Hi Tim, API v2 doesn't offer zip folder downloads, but I'll pass this along as a feature request. (Also, I'm not sure exactly what functionality you're referring to on v1, as there's no documented/supported zip folder download functionality on the /files endpoint you're referring to. Perhaps you're referring to the ability…
-
This error indicates that your OAuth 2 access token is incorrect, i.e., it doesn't match the expected pattern. In the code you shared in your first post in this thread, you have your access token being saved to the variable ACCESS_TOKEN. It appears you redacted the value as "<ACCESS_TOKEN>" for the sake of posting it here,…
-
No, the Dropbox API doesn't offer anything quite like this, but I'll be sure to pass this along as a feature request.
-
You can get the token/uid from the success result like this: case .success(let token): print("Success! User \(token.uid) is logged into Dropbox.") Hope this helps!
-
1. Yes, regarding the grouping, the data ingress guide elaborates: "Group files that are being uploaded to into one or more batches. A batch can contain up to 1,000 entries. Entries in a batch don’t all have to target the same namespace, but the fewer namespaces involved in a batch, the more efficient committing the batch…
-
You can find information on that here: https://developer.android.com/guide/topics/security/permissions.html#permissions https://stackoverflow.com/questions/2169294/how-to-add-manifest-permission-to-android-application#2169311
-
This should be fixed. The captcha should be properly shown when necessary now. Please let me know if you're still seeing any issues.
-
Do you have android.permission.INTERNET set for your app?
-
You're getting a NetworkOnMainThreadException, which means you're trying to make a network call on the main thread, which isn't allowed on Android. (The upload method makes a network call to the Dropbox API servers to send up the file content.) You should make this call on a background thread instead. This isn't specific…
-
Thanks for the request! That's correct, the current Paper API doesn't support creating/editing documents, but we're tracking that as a separate feature request.
-
Thanks! I'll send this along as a request to change that error handling.
-
It sounds like you're referring to the SwiftyDropbox library. What version number are you using, and what error are you getting? You may get a clientError in this case. There's a sample of handling these high level errors here: https://github.com/dropbox/SwiftyDropbox#generic-network-request-errors
-
The Dropbox API itself doesn't offer control over the speed you get to the API, and just tries to use the maximum speed possible. There are a number of factors that can affect the speed at which you can upload files to and download files from the Dropbox servers though. This includes your connection to the Internet, how…
-
Unfortunately due to some specifics of how Dropbox is implemented, not all of the path components can be guaranteed to have the expected casing. You can find more information on this in the "Path formats" section under: https://www.dropbox.com/developers/documentation/http/documentation#formats There's also some…