Comments
-
Hi Siddharth, I believe this is an issue where we may not be trusting one of the Certificate Authorities on your certificate. We're checking if we can fix this on our side, but I can't say if/when that would be. Some workarounds for now that may help to get this working from your side: - use http:// for your webhook URI…
-
Hi George, yes, recent changes may not immediately be reflected in search results due to a short delay in indexing. We'll get that clarified in the documentation. For this kind of application, you may be better suited by directly checking with files_get_metadata though. I.e., you can check for 'printmessage=1'…
-
What exactly happens when "AVAsset does not get created properly"? Do you get an error? I suspect the issue is that a shared link doesn't directly point to the file content, but rather an HTML preview. You can modify these links for direct content access though, as shown here: https://www.dropbox.com/help/201 Note that…
-
API v2 and SwiftyDropbox don't currently have an equivalent of loadStreamableURLForFile, but I'll be sure to pass this along as a feature request.
-
The official Objective-C SDK for API v2 has been released here: https://github.com/dropbox/dropbox-sdk-obj-c
-
Raheel, the Datastore API will be disabled at the end of April, so any datastores syncing functionality, including in the Sync/Datastores SDK, will stop working then.
-
That's correct, we haven't announced any timeline for deprecating the Core API, so while we recommend moving off of the Sync SDK, it should continue working.
-
Hi Joe, we don't currently have an official Objective-C SDK, tutorial, or documentation for API v2, but it is something we're planning. I'll be sure to pass this along as feedback as well. Also, note that both API v1 and v2 are currently supported. While API v2 is preferred, API v1 a.k.a. the Core API hasn't been…
-
This should be fixed as of version 2.0-beta-6 of the SDK, where we exposed the ability to configure socket read timeouts for StandardHttpRequestor. You can find a sample of using longpoll here: https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/longpoll/src/com/dropbox/core/examples/longpoll/Main.java
-
Thanks for the report! We'll work on getting that fixed up. As far as normal polling is concerned, we don't have any specific guidance, but there is a rate limiting system that will error out requests if you call too quickly.
-
Does filecontainer have the length of data you expect? Can you share the rest of the relevant code?
-
Exactly how this works will depend on what library/SDK you're using, if any. For example, if you're using the official PHP Core SDK, you would use the getFile method to access the file content. That method writes the data out to a resource that you provide, and what you do with that is up to you. E.g., you could save it to…
-
Hi Mike, the v1 iOS SDK doesn't currently offer a way to control the include_deleted parameter, but I'll be sure to pass this along as a feature request. Note that the SDK is open source though, so you can modify it if/as desired.
-
Yes, but for the official Dropbox SDKs in particular, we handle some of the redirect URI configuration automatically to make it easier when getting started.
-
It sounds like you already have a pretty good handle on this, and (as you mentioned) since this is more about OAuth 2 itself, as opposed to Dropbox, there are likely plenty of good resources available online for more reading. To add a few points and address your questions though, the app key does get exposed publicly, but…
-
[Cross-linking for reference: https://stackoverflow.com/questions/35072308/dropbox-api-find-the-last-updated-timestamp-of-a-directory-that-includes-chang ] The API (v1 or v2) doesn't currently return a modified time for folders that reflects changes inside that folder. I'll send this along as a feature request though. For…
-
Hi Barry, there wasn't really any particular reason for 4 MB in my sample. A larger size could certainly improve overall performance (by reducing the overhead of making more connections), but it comes at the cost of making each call more likely to fail. Further, the app would have to re-upload more data for any particular…
-
Hi Paulo, the majority of the time taken by the files_upload_session_append call should be the time spent actually sending the file content to Dropbox over the network. I can't reproduce the issues you're seeing, so it does seem likely these issues are related to your network connection. Also, note that all of the Dropbox…
-
We don't currently have an official sample app for that, but I'll be sure to pass this along as request for one. Here's a quick example I put together though: (note, I haven't tested this extensively, and it doesn't have any error handling) f = open(file_path) file_size = os.path.getsize(file_path) CHUNK_SIZE = 4 * 1024 *…
-
The response includes the Content-Type header that the API received. In both of these additional cases, it seems "; charset=UTF-8" was appended to the Content-Type you specified, resulting in an invalid Content-Type. Firefox is known to do this. I posted an answer here about Firefox's behavior, including some information…
-
Can you share screenshots for those attempts then?
-
In your screenshot, you're setting your Content-Type header to "text/json". The error message is indicating that only "application/octet-stream" or "text/plain; charset=dropbox-cors-hack" are accepted.
-
Hi Gregory, the Dropbox API doesn't do any throttling based on account type. There are many factors that can affect the speed you see. For reference, all of the Dropbox servers are located in the US. Your connection speed to Dropbox depends on the specific routing you get between your ISP and our servers, and may be slower…
-
Actually, it seems like the code is working correctly, and that string is the contents of the file you're trying to download. You can double check this by downloading it manually via the Dropbox web site.
-
I cleaned up your code and tried this: <?php $url = "https://content.dropboxapi.com/2/files/download"; $sAccessToken = "ACCESS_TOKEN_HERE"; $curl = curl_init($url); $aPostData = array('path' => '/PATH_TO_IMAGE_HERE.jpg'); $aOptions = array( CURLOPT_POST => true, CURLOPT_HTTPHEADER => array('Content-Type: ', // To force…
-
Richard's correct, there's no way to do this. I'll send this along as feedback to the team, but for context, can you elaborate on what your app would use this for?
-
No, there's also no API for uploading to a file request. I'll send this along as a feature request to the team.
-
If you're a programmer and are interested in using the API to accomplish this, this would be possible. Specifically, Dropbox API v1 offers the /save_url endpoint, which lets you specify a URL for a file to be added to your account: https://www.dropbox.com/developers-v1/core/docs#save-url There's a blog post about it here:…
-
It's not currently possible to make a universal/deep link like this, but I'll be sure to pass this along as a feature request. If you have a desktop app though and need to find the local Dropbox folder(s), this help article has useful information: https://www.dropbox.com/help/4584
-
No, there currently isn't an API for file requests, but I'll be sure to pass this along as a feature request.