Comments
-
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.
-
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…
-
I'm not familiar with the third party library you're using, so I can't say offhand how you should specify the parameters. Also, apologies I wasn't clear in my previous reply. That path value was only the folder portion. The full path value should also include the desired file name, e.g., "/Everything is…
-
Thanks for following up with the additional information. It looks like you're trying to use the API v1 /files_put endpoint. This does let you upload files into an account, so you're on the right track. It looks like you already have some code, but for reference the full documentation can be found here:…
-
[Cross-linking for reference: https://stackoverflow.com/questions/34984386/dropbox-api-other-users-permission-to-upload-into-my-folder ] HI Natasha, I'm not sure I fully understand your question. If you already have an implementation where you can upload files via the API, and want other people to be able to do so as well,…
-
Christian, it looks like Pankaj's example reads the data to upload from an arbitrary URL, likely specific to their app. When developing your own implementation, you can retrieve the data to upload from wherever it is in your app, e.g., a local file.
-
I don't believe we have a sample for that, but I'll be sure to pass this along as feedback. If you elaborate on what you're stuck on we'll be happy to help though. Please share your code and whatever output/errors you're getting.
-
It is possible to upload a file to a Dropbox from the client, in this case the web browser using the JavaScript SDK (as well as get information about files, etc). As noted earlier, the concern is that in that scenario, the access token is exposed to the client, so this would only be safe if the end-user is only and always…
-
[Cross-linking for reference: https://stackoverflow.com/questions/34928673/can-i-upload-files-from-a-custom-website-form-to-dropbox ] It sounds like you want to build an app that only connects to a single Dropbox account. The API was designed with the intention that each user would link their own Dropbox account, in order…
-
Ok, this should be fixed version 2.3.0.