Comments
-
We don't guarantee any particular page size, and I believe it can vary in practice. Apps should always just check has_more and call back to /files/list_folder/continue if it's true, and so on.
-
The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account. The SDKs don't offer explicit support for it and we don't recommend doing so, for various technical and security…
-
Hi David, here's an example of using files.download with every error case handled in Swift: (apologies for the poor formatting on the forum) Dropbox.authorizedClient!.files.download(path: path, destination: destination).response { response, error in if let (metadata, url) = response { print("*** Download file ***")…
-
Specifically, I mean are you getting anything else from your app (e.g., other output or errors) that leads you to believe that's the case beyond that warning log message though? I believe that warning just indicates that a freed connection wasn't being returned to the pool because the pool is already full, not that any…
-
Can you elaborate on what you mean when you say you "believe these connections are being dropped, so some of the work is not executed when it should be"? Is there any error or output you can share?
-
The connection pooling should be handled for you. Are you getting failed requests when you see this warning logged? If you'd like, you can control the max_connections by creating a session: https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.create_session and then passing that in when…
-
There isn't a great way to test this from your side ahead of time, since the actual change will just be a change in the certificate being used on the Dropbox API servers. As long as the upgrade (either SDK or just certificate file) works when you do the upgrade, we don't expect any issues when the new certificate is in…
-
1. Yes, your API calls will fail once the Dropbox certificates are changed to ones not covered by the certificate file included in your copy of the SDK 2. We recommend upgrading the SDK entirely, and we'll be happy to help with any issues you have while doing so. Looking at the CHANGELOG.md file, I don't see any breaking…
-
Hi Artem, as you saw in the API Explorer, for these calls with the parameters in the header, you need to escape these characters. That is, when you use the “Dropbox-API-Arg” header, you need to make it “HTTP header safe”. This means using JSON-style “\uXXXX” escape codes for the character 0x7F and all non-ASCII characters.…
-
Yes, you can use the API v2 /sharing/add_folder_member endpoint to invite a user to a shared folder. In JavaScript, it would look like this: $.ajax({ url: 'https://api.dropboxapi.com/2/sharing/add_folder_member', type: 'POST', processData: false, data: JSON.stringify({"shared_folder_id": "84528192421","members":…
-
Thanks for reporting this! I can't make any promises, but I'm sending this along to the team.
-
The Dropbox API does enable you to build an app that users can connect their accounts to, in order to interact with their files. For example, once a user is linked to your app, the app can upload and download files to and from their account, as well as share files. To get started, we recommend using one of the official…
-
What error/output do you get when you try to run with the absolute path?
-
Thanks! It looks like these aren't the actual raw requests though. How are you printing out the request headers you're sending? Can you print out the raw requests, and double check that you're sending the exact "Range" header that you're intending to?
-
I can't seem to reproduce this behavior. Can you share the raw requests and responses so we can look into it? Just be sure to redact the access token. Thanks in advance!
-
The error:"(null)" indicates that this is working properly. Are you seeing any broken functionality? This is related to new protections in iOS 9, but as long as you've set up the SDK as documented, which is sounds like you have, this log message can be safely ignored.
-
You can use the API to list files uploaded to Dropbox. The API can't tell you about files that are currently uploading, but not yet complete, though. For example, to list files in a folder, you can use the listFolder method in the Java SDK. You can also perform other operations like uploading and downloading files.
-
What do you mean be "control" exactly? What operations do you need to perform?
-
Hi Dennis, SwiftyDropbox supports iOS 9+, not just iOS 10. You can find the requirements in the README here: https://github.com/dropbox/SwiftyDropbox (Also, the Swift 2.3 branch supports iOS 8+.)
-
Thanks for the additional information! It sounds like you're referring to changes in Swift 2.2 in particular. If you've already made the changes, feel free to submit a pull request. Otherwise, we'll look into it too. Also, I can't make any promises regarding tvOS support, but I'll be sure to pass this along as a feature…
-
I believe the SwiftyDropbox SDK should work on iOS 9.3. Are you seeing any issues, beside the one reported in your other thread? If so, please let us know the details so we can look into it.
-
I see, yes, only the start endpoint gives you a new session ID, so it does look like your method is getting called more than once. You only need to call successfully start once per file though. If you're having trouble with the API once you sort that part out, let us know.
-
Can you elaborate on what you mean when you say you "get a brand new [session ID] it seems during the next call"? Only /files/upload_session/start returns session IDs. Can you log and share the responses you're getting?
-
Your HTTP client seems to be overriding the Content-Type you're trying to set. There was another thread with the same issue using RestClient here that should be helpful: https://www.dropboxforum.com/hc/en-us/community/posts/205222763-Not-getting-response-when-I-call-2-files-listfolder-method
-
To follow up here, SwiftyDropbox does now support OS X/macOS.
-
I just heard back from the team, and we do still plan on adding OS X/macOS SDK support, but I don't have a timeline to offer right now. If you're using SwiftyDropbox, there is a pull request for it here, but note that we haven't yet fully vetted that code: https://github.com/dropbox/SwiftyDropbox/pull/49
-
Hi Dennis, I don't have any news on API v2 SDK support for OS X/macOS right now, but I'll check in with the team to see if I can get an update for you and reply here.
-
Hi Joe, when offline, the HTTPError case doesn't contain any useful specific HTTP error information as you saw (since there was no response to use). For now you can just consider this case to be a general network failure, but I'll send this along as a feature request to expose the more specific underlying error from the…
-
This should be fixed now. Let me know if you're still having any trouble with it.
-
Thanks for the report! We're looking into it.