Comments
-
Thanks! The endpoint itself does accept file ID, but the mime type detection is based on file extension, which is missing when a file ID is used. As a workaround, please do use the file path if you need the specific Content-Type value there. I'll ask the team to look into if we can get this to return the expected value…
-
Thanks! I've seen that happen when the Dropbox web site isn't allowed on the device due to website restrictions: Settings > General > Restrictions > Websites Can you try disabling that restriction and let me know if that helps?
-
I just tried this out and it is working properly for me. Can you share the code you're using? Thanks in advance!
-
To list all of the members of a shared folder, you would use ListFolderMembers and ListFolderMembersContinue. (Those correspond to /2/sharing/list_folder_members and /2/sharing/list_folder_members/continue). Likewise, for a shared file, not just a file in a shared folder, you would…
-
The user's access to files in a shared folder are determined by their access level in the shared folder itself. If you're using the official API v2 .NET SDK, to check the user's current access level for a particular shared folder, you can use GetFolderMetadata. Or, you can list all of the shared folders the user currently…
-
That console message is unrelated to this flow and can also be ignored. When you tap "Link to Dropbox account" you should be presented with the Dropbox log in page, or the app authorization page if already logged in. This is working properly for me. What version of the Dropbox SDK do you have installed, and have you made…
-
That's a matter of the Dropbox client syncing behavior, and not the API, so I'm afraid I can't offer insight on that. Please check out the other parts of the forum e.g., Find answers > Syncing and uploads, or open a support ticket, for questions for the Dropbox product itself.
-
The 10814 errors themselves are expected if the official Dropbox app isn't installed, so they're safe to ignore. The SDK should automatically fall back to processing the app authorization flow in Safari in that case. (More specifically, it should present a SFSafariViewController with the OAuth 2 app authorization flow on…
-
No, /2/sharing/add_folder_member is the only way to invite a new member to a shared folder, and it only accepts a shared folder ID, not a path. You can get the shared folder ID in any Metadata object for the folder, e.g., as returned by /2/files/get_metadata, which does accept a path.
-
When initially creating a shared folder, or making an existing folder a shared folder, using /2/sharing/share_folder, you must supply a path. When inviting another user to a shared folder though, using /2/sharing/add_folder_member, you need to supply the shared folder ID.
-
Unfortunately, the Dropbox API doesn't offer the ability to read or write xattrs/macOS tags. The metadata is only the Dropbox file metadata, and the file properties are only for custom defined Dropbox templates. I'll send this along as a feature request.
-
We've seen this happen when the controller passed in to authorizeFromController isn't the top-most controller. The solution would be to make sure that you're passing the top-most view controller when authorizing. For example, with the UISplitViewController case, it's not necessarily self. Can you check if that's what's…
-
I just tried this, and it is working for me. Are you triggering any navigation around the same time? These calls are asynchronous, so if you leave the page before the call finishes, you can get this error.
-
If you're using the OAuth 2 "code" flow, the code returned on the redirect URI is an "authorization code", not an "access token". You'll need to exchange the authorization code for an access token. You can find more information on that in the documentation:…
-
It looks like you also opened a ticket for this, and that has been redirected to the right people for this issue, so I'll defer to them in that ticket.
-
That's correct, these 10814 errors are expected when the official Dropbox iOS app isn't installed, and the SDK should automatically fall back to processing the app authorization flow in Safari in that case. (More specifically, it should present a SFSafariViewController with the OAuth 2 app authorization flow on the Dropbox…
-
Mrschulz's comment is correct, the response block is asynchronous. The result of the API call is only returned in the response block, so you should trigger whatever is relying on that value inside the response block.
-
There isn't a way to disable the automatic creation of parent folders when uploading to a path though, but I'll pass this along as a feature request.
-
Yes, you can upload a file into a folder, using a path relative to the ID for the folder, like "<FOLDER ID>/<FILE NAME>". Here's a simple example of what that would look like: curl -X POST https://api.dropboxapi.com/2/files/create_folder_v2 \ --header "Authorization: Bearer <ACCESS_TOKEN>" \ --header "Content-Type:…
-
In the Python SDK, you can use files_list_revisions to get the revisions for the file. There's an example of calling that here.
-
Can you elaborate on what you mean when you say it's "not working"? What error or unexpected output do you get?
-
This thread is old, and the specific cause here may depend on your particular setup. If you're seeing this, please feel free to open a new thread with details so we can help.
-
[Cross-linking for reference: https://stackoverflow.com/questions/47726878/can-we-get-list-of-files-folders-from-dropboxs-sharing-folder-using-python ] Yes, the sharing_* methods offer access to sharing information. For example, to list the shared folders the user has access to, you can use sharing_list_folders and…
-
The "data" you pass up needs to be valid JSON, otherwise the API call will fail with the "could not decode input as JSON" error. Some of your values are missing pieces such as the opening { or a ,. Also, make sure you use the standard " character, and escape it with a \. So, here are some valid examples based on what you…
-
Apologies for the bother, but I'm not sure I follow. Could you open a ticket with the relevant app and account ID here so I can check on your configuration so I can advise properly? https://www.dropbox.com/developers/contact Thanks in advance!
-
I don't have a sample for VBA unfortunately. If you can't use an SDK/library, I recommend translating the curl examples in the documentation for whatever HTTP client you can use in your app.
-
The API does offer the ability to create and retrieve shared links for files and folders, using the endpoints I linked to in my previous reply. Please try using those and let us know if you run in to any issues.
-
I'm not sure I follow. Were you able to inspect the actual API requests like I suggested?
-
Unfortunately this screenshot doesn't offer much more information, so I can't say what the issue is. For example, I don't see what the "UploadString" method is doing. If you can share the 'X-Dropbox-Request-Id' response header value at least, I may be able to investigate based on that.
-
We don't have any resources for VBA in particular unfortunately. In general, we recommend developers use one of the official SDKs, if possible, or if not, one of the community SDKs, or call the HTTPS endpoints directly. For example, to create a shared link for any file or folder, you would use the…