Comments
-
Thanks for writing this up! I can't make any promises, but I'll send this along as a feature request to the team.
-
Thanks for the additional information! A fix for this is tentatively planned to ship in an update to the Dropbox Android app next week. I'll follow up here once I have news on that.
-
That's the correct way to download a file. I just tried that line of code myself and it is working as expected for me. It sounds like there's something else affecting this in your project, but I can't say off hand what that might be. We'll be happy to look into it further, but we'd need to be able to reproduce it here. Can…
-
@"ArgusR" You should implement the OAuth app authorization flow in your app to allow arbitrary users to connect to it. You can find information on how this works in the OAuth guide: https://www.dropbox.com/developers/reference/oauth-guide There are OAuth 2 flow helpers in the Python SDK:…
-
The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. It is technically possible to connect to just one account like you describe, but we don't recommend doing so, for various technical and security reasons, especially in client-side apps…
-
Thanks! That '10814' error can be ignored. (It just means that the official Dropbox iOS app isn't installed, so the app authorizationn flow is sent through Safari instead.) Anyway, I don't see any reason for this yet, so we'll need to investigate further. Please share the rest of the information I listed in my previous…
-
I can't offer help with using the Android/Java File class itself unfortunately, as that's not made by Dropbox. I recommend referring to the documentation for that, or looking for Android samples or asking on a more general programming resource, e.g., StackOverflow. You can see when the Dropbox Android app is updated here:…
-
The issue is that client-side applications can't keep secrets, meaning that any access token stored in a distributed app, or even just sent to the app at any time, could be extracted. That means that a malicious user could get the access token, and use it to access the Dropbox API directly, bypassing any access controls…
-
I see, thanks for clarifying. The API was designed with the intention that each user would link their own Dropbox account though, in order to interact with their own files. It is technically possible to connect to just one account like you describe, but we don't recommend doing so, for various technical and security…
-
To add members to already shared folders or files, you should use the /2/sharing/add_folder_member or /2/sharing/add_file_member endpoints, respectively. Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native…
-
The requirement to use listFolderContinue has always been part of API v2, but the amount of entries you get back per page can vary due to a number of things that can change over time. I can't say exactly what caused the change in this particular case, so just make sure you always have listFolderContinue implemented as…
-
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 specific steps to reproduce the issue - the exact names and versions of the platforms, browsers, and SDK/library you are using - a screenshot of the issue - the relevant code snippet(s) -…
-
The Dropbox API v2 Java SDK now offers progress listeners for uploads and downloads. This has been released in v3.0.9: https://github.com/dropbox/dropbox-sdk-java/releases/tag/v3.0.9 There's an example of using it with with the uploadAndFinish method (…
-
The Dropbox API v2 Java SDK now offers progress listeners for uploads and downloads. This has been released in v3.0.9: https://github.com/dropbox/dropbox-sdk-java/releases/tag/v3.0.9 There's an example of using it with with the uploadAndFinish method (…
-
@"Elina" The Dropbox API v2 Java SDK now offers progress listeners for uploads and downloads. This has been released in v3.0.9: https://github.com/dropbox/dropbox-sdk-java/releases/tag/v3.0.9 There's an example of using it with with the uploadAndFinish method (…
-
The Dropbox API v2 Java SDK now offers progress listeners for uploads and downloads. This has been released in v3.0.9: https://github.com/dropbox/dropbox-sdk-java/releases/tag/v3.0.9 There's an example of using it with with the uploadAndFinish method (…
-
I just wanted to follow up on this to let you know that the Dropbox API v2 Java SDK now offers progress listeners for uploads and downloads. This has been released in v3.0.9: https://github.com/dropbox/dropbox-sdk-java/releases/tag/v3.0.9 There's an example of using it with with the uploadAndFinish method (…
-
Since you're getting the link from DbxChooser, you don't necessarilly need to use DbxClientV2 at all. The DbxClientV2 object is for calling the full Dropbox API, but you can download directly from the Dropbox link instead. Exactly how you do so may depend on exactly what kind of link you requested though.…
-
Dropbox does offer an API you can use for programmatically uploading files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here: https://www.dropbox.com/developers For example, to upload files, you can use /2/files/upload:…
-
I see you're using listFolderBuilder, but aren't calling listFolderContinue. You aren't always guaranteed to get all entries returned by calling just listFolder. You need to check the result, and if ListFolderResult.hasMore is true, call back to listFolderContinue to get more results (and the same for the…
-
Here's an example of one way you might do this: WebRequest request = WebRequest.Create("https://api.dropboxapi.com/2/sharing/add_folder_member"); request.Method = "POST"; request.Headers.Add("Authorization", "Bearer " + accessToken); request.ContentType = "application/json"; Stream requestBodyStream =…
-
It looks like you're sending the API parameters in a header with the name "data" in this line: r.setHeader('data','{ "file" : "id:ooT7g_X2tkAAAAAAAAAAEw" ,"actions" : [] }'); The /2/sharing/get_file_metadata endpoint is an "RPC" style endpoint, so the parameters should be sent as JSON in the request body, not as a header.…
-
@"AppDev" That exception does indicate that the 'path' value you're supplying to the `download` method doesn't have the right format for a Dropbox path. Can you double check that you're getting that same exact error for both versions of the line you pointed out? The second one, with the value "/file.txt" looks correct.…
-
There isn't a name I'm aware of. (It's not part of the public Dropbox API though, so I'm not very familiar with it.) In any case, just to be clear, I've sent this along as a request, but I can't promise if or when this would be done.
-
Thanks for the feedback! I'll be sure to pass it along to the team. I can't offer help with Nemiro in particular, but if you're not using the official SDK, the expected use pattern would be that you would build the JSON to send in the request body, e.g., using Json.NET or the like, where you can use arbitrary key names.…
-
Thanks for following up with the additional information. I'm afraid I don't have a good solution to offer. The Dropbox API does use the key name ".tag" to identify the subtype of a struct or selected member of a union. I'll pass this along as a feature request for an alternative, but that's unlikely to be done in this…
-
Is that the entirety of the output you get? If your app crashed, there should be some sort of stack trace. (Can you double check you're connected to the right device and don't have any filters enabled on Logcat?) I just tried the code you supplied and I wasn't able to reproduce the crash.
-
Thanks for following up. No, unfortunately the Dropbox Saver does not offer a way to save local file like this, but I'll pass this along as a feature request.
-
Does that file exist in the "team space"? By default, API calls will only look in "member folders", so this code won't work if the file is in the team space. To operate in the team space, you need to set the 'Dropbox-API-Path-Root' header. You can find information on how to do this in the Namespace Guide:…
-
The Dropbox Chooser and Dropbox API are separate, so this is the expected behavior. Even if you use the Chooser with an app key for an app with the app folder permission, the end-user will be able to browse all of their files. Your app will only receive the specific file(s) the user explicitly selects though. There isn't a…