Comments
-
The endpoint names in my previous reply are links to the documentation which has more information about each one, but in short: - download: returns the original file data - get_preview: returns the data for an HTML or PDF preview for files of supported document types - get_thumbnail: returns the data for a jpeg or png…
-
@"kmsbs" In your code, you're actually calling `uploadAndFinish` twice; once on its own, and then again inside your `Log.e` call. When you call the second time, the `inputStream` is consumed, so you end up uploading a zero byte file. Update your code to only do the upload once.
-
The Dropbox API doesn't offer a way to access file comments, but I'll pass this along as a feature request. It does offer a few options for accessing file data itself though: The standard way is to get the file data directly from the Dropbox API servers using /2/files/download. (Or, for a preview or thumbnail version of…
-
1) Yes, using the Dropbox API, you can create, share, and upload files to folders. For .NET, we recommend using the official Dropbox API v2 .NET SDK. In this case, it sounds like you'll want to: - use ShareFolder to create/share a folder - use AddFolderMember to invite another user to the shared folder - use Upload to…
-
The Dropbox API unfortunately doesn't offer the ability to get starred files or comments, but I'll pass this along as a feature request.
-
The Dropbox API doesn't offer a way to automate the desktop client authentication unfortunately, but I'll pass this along as a feature request.
-
Please try to reduce the code down the minimum amount needed to demonstrate/reproduce the issue. Thanks!
-
@"makkc" I don't believe we have a guide/full working example for this specific functionality. This is an old thread with a lot of subscribers though, so please open a new thread with what you have so far and what isn't working for you so we can help with your code.
-
Using 'fileBlob' in browser JavaScript (or 'fileBinary' in Node) is the correct way to access the file data itself. Apologies that this isn't better documented! I'll ask the team to clarify that in the docs. There's an example of using that with a Content-Download style method like this here:…
-
We don't have an example quite like that unfortunately. Based on your description though, you'll probably want to use some of the following methods, depending on exactly how you want to implement your gallery:…
-
In your code for handling the ListFolderContinueAsync result, you appear to only be checking the first entry. That result can contain a large number of entries per page though, so this code could miss a significant number of entries. You should iterate through Entries to make sure you handle everything. You can find more…
-
First, can you confirm that you received this cursor from a Files.ListFolder* method? If this is a cursor from something else, you won't be able to use it with Files.ListFolderContinue. Second, can you check that your app isn't accidentally modifying (e.g., truncating) this cursor string? Cursors encode information about…
-
We'll be happy to look into this, but we'll likely need some more specific information to make sure we have a good understanding of the issue you're describing. Can you share the following: - the specific steps to reproduce the issue - the code used in those steps to reproduce the issue - sample output showing the issue If…
-
1) Yes, you can change the permission level for a shared folder member after the fact. Via the API, you can do that using /2/sharing/update_folder_member. 2) Who can change permissions in a shared folder is determined by the "ACL policy" for that folder. You can set the `acl_update_policy` to either `editors` or `owners`…
-
The DbxClientV2 objects you create are just local client objects to make it easier to call the Dropbox API, but don't themselves create connections immediately upon construction. The API calls are only made when you call one of the methods, e.g., listFolder. That being the case, the API/SDK doesn't enforce a limit on how…
-
That's correct. You can add folder members using just the source account (this is essentially "inviting" them to the shared folder), but to actually add or "mount" the folder to their accounts (which would sync it to their devices), you would need authorization to modify their accounts, via access tokens for each one.
-
Thanks for the post! This isn't currently possible, so I've sent this along as a request for support for using ID-relative values like this for /2/files/create_folder_v2.
-
@"Doceave" It sounds like the API portion of this is working properly, i.e., the uploads via the API completed successfully, so I'm afraid I can't offer too much help here in the API forum. For reference, app folders should sync to your connected devices just like any other folder in your account. If you're not seeing the…
-
For accessing the Dropbox API from JavaScript, we recommend using the official Dropbox API v2 JavaScript SDK: https://github.com/dropbox/dropbox-sdk-js That contains functionality for the Paper endpoints, documented here: https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#paperDocsArchive__anchor
-
@"Oskar" Thanks! I'll pass that request along to the team as well.
-
It sounds like you're trying to construct links to files in the Dropbox web site. Unfortunately, as this isn't part of the Dropbox API, the link format is subject to change without notice, and so is liable to break. That being the case, I don't recommend doing this. I don't have a good solution I'm afraid, but I'll pass…
-
@"RTS S." I see, thanks for clarifying and providing the sample. In this case, based on this error, it sounds like you have a shared link from a different user than the one that the access token is for. That being the case, you can't directly access the file via ID, since it isn't in the authorized user's account. Instead,…
-
Thanks! I just tried this, and I can't seem to reproduce this issue with this code though. Are you sure the first call is succeeding? I don't see any error handling in this snippet. Also, how are you copying $new_cursor to $cursor? I don't see that in this sample either. Are you sure that's working properly?
-
@"RTS S." Both /2/files/list_folder and /2/files/download support both file IDs and paths. (You can check the supported formats in the documentation for the 'path' value.) So, for instance when calling /2/files/list_folder, you can supply the 'path' parameter containing either the 'id' of the folder you want to list, or…
-
We'll be happy to help with this, but need some more information. Please reply with: - the name and version of the platform and SDK/library you are using, if any - the steps to reproduce the problem, including the relevant code snippet(s) - the full text of any unexpected output/errors Thanks in advance! If you'd prefer to…
-
No, there isn't another way to set the title like that, but I'll pass this along as a feature request.
-
Thanks for the detailed feedback!
-
The Dropbox Chooser unfortunately does not provide access to Paper documents, but I'll pass this along as a feature request. If you need programmatic access to Paper documents, you'll need to use the Dropbox API instead: https://www.dropbox.com/developers/documentation/http/documentation#paper That's a link to the…
-
@"martinjuniqe" Is that the actual/full output you get? There should be more useful information in the response body for that 400 error (not "nothing"). You can check your app type(s) on the App Console. Any apps with the "Full Dropbox" or "App folder" permissions are "user-linked". Any apps with a "Team" permission are…
-
1. No, folders can only have one owner at a time. 2. No, you cannot remove the last admin on a team. Attempting to do so will result in the 'remove_last_admin' error. 3. Yes, if your app has the "team member management" or "team member file access" permission, you can register for and receive Business webhook…