Comments
-
Dropbox doesn't offer an FTP interface, but it does offer an API you can use for transferring files, among other operations. It does offer typical upload and download functionality, but it sounds like that wouldn't be ideal for your scenario. One possible alternative, if you can get Internet-accessible links to the files…
-
Dropbox doesn't offer an API for retrieving todos/tasks unfortunately, but I'll pass this along as a feature request.
-
That's correct, the search in the Dropbox Chooser doesn't do full text search, and there isn't an option to enable that, but I'll pass this along as a feature request.
-
[Cross-linking for reference: https://stackoverflow.com/questions/53110650/dropbox-permission-exception-thrown-when-moving-deleting ] Is that the actual request body, or did you modify it when posting it here? You seem to have the same value in both the "from_path" and "to_path" parameters, which should produce a different…
-
No, the Dropbox API doesn't offer a way to get a PDF version of a .xls file, but I'll pass this along as a feature request. That being the case, you'd need to download the original .xls file data (using the download method you mentioned, which always returns the raw data) and convert that to PDF in your app's code.
-
What error message and stack trace are you getting when it crashes on ListFolderAsync?
-
Shared links only provide view/download access. You can't upload to them.
-
@"chrisgch" I'm afraid the Android 4.3 system browser (which seems to be based on Webkit 534.30) isn't officially supported either, given how old it is. I recommend having your users upgrade to a more recent version.
-
@"ElsayedGamal" It sounds like you want to programmatically upload files to your Dropbox account. To do so, you should use the Dropbox API. I see from the code you shared that you already found the correct API endpoint, /2/files/upload, for doing so. (We also have an official .NET SDK that makes this easier, if you can use…
-
Dropbox does not offer a way to develop an app to be embedded or plugged in to the official Dropbox client/environment. The Dropbox API only allows you to build apps that can work with Dropbox by communicating with the Dropbox servers over HTTPS.
-
Making the call and catching that exception is fine, but if you want to check beforehand, you can call FilesUserRoutes.GetMetadataAsync for the folder itself and check the returned FolderMetadata.SharingInfo. (Or, you can list all of the shared folders on the account…
-
There are two ways you can approach this: * With the official Dropbox Python SDK, use the method sharing_get_shared_link_file to download the file content from a shared link. Or without the SDK, make the same call to /2/sharing/get_shared_link_file API endpoint itself directly. * Without using the API/SDK, modify the…
-
Hi Wayne, it sounds like this isn't about using the Dropbox API in particular, so I'm afraid I can't offer help with this. I just moved your post to the more general "Developers & API > General Discussion" forum section though in case any other developers there have any insight to share.
-
@"chrisgch" Thanks for the report. Unfortunately, similar to the original report on this thread, processing the OAuth app authorization flow in a web view, not the system browser itself, is not supported. Per the Dropbox /oauth2/authorize documentation, we do not support processing the OAuth app authorization flow in web…
-
What's in the response body for the 400? It should contain a more helpful error message.
-
To access the team space itself, you need to set your "root" to the team space using the "Dropbox-API-Path-Root" header, instead of specifying the namespace ID in the path value as you're trying to do in this code. You can find information setting "root" in "Dropbox-API-Path-Root" in the Namespace Guide. It looks like you…
-
In this latest snippet of code, I see you're using ShareFolderAsync. Since that call is to share a folder itself, it doesn't have ParentSharedFolderId like files in shared folders do. ShareFolderAsync returns Task<ShareFolderLaunch>. You should use CheckShareJobStatusAsync to check the status after calling…
-
@"TwinBlade" Are you processing this in a web view in an Electron app? If not, it sounds like this isn't necessarilly the same as the original issue in this thread. In that case, please open a new thread with the details of the issue you're seeing. You said "the method to exchange" "is problematic". Please elaborate on…
-
It doesn't have a successful return value, but it can raise a number of different errors. You should still check the response for an error. You can check the status code to determine success/failure at a high level, and check the response body for specific error information. With the incorrect code you had, for instance,…
-
[Cross-linking for reference: https://stackoverflow.com/questions/53052507/dropbox-receiving-folder-url-instead-of-file-url-using-list-shared-links ] The /2/sharing/list_shared_links documentation states: "If a non-empty path is given, returns a list of all shared links that allow access to the given path - direct links to…
-
Thanks for the additional information! I see from your post that you're processing the OAuth app authorization flow in a web view, not the system browser itself. Per the Dropbox /oauth2/authorize documentation, we do not support processing the OAuth app authorization flow in web views. (This decision was made in order to…
-
I see from your code that you're only sending data with the append call. You can actually send data on any/all of the start, append, and finish calls, though it's not required. (Also, for small uploads like this, you don't need to use upload sessions at all, but I presume this is just for the sake of testing the code…
-
What do you mean when you say it "seems to be this line that returns the NULL"? The UploadSessionFinishAsync method either returns Task<FileMetadata>, or raises an exception. Please add extra logging or use a debugger to confirm what is actually being returned or raised. Anyway, UploadSessionFinishAsync is the correct way…
-
@"saritafurtado" I just tried creating and then deleting the newly created Paper document, using /2/paper/docs/create and /2/paper/docs/permanently_delete, respectively, in the API v2 Explorer, and it worked as expected. Can you double check that you are using the correct access token and doc ID for…
-
@"iOSMonika" No, this is still open with engineering, but I'm afraid I don't have a solution to offer.
-
The "grant_type" parameter value should be the actual string "authorization_code", not the code itself. You put your code there again instead of the string "authorization_code". You should only supply the code itself once, as the "code" parameter value. In the example in my previous comment, make sure you only replace the…
-
By "file summary", do you mean the file listing for your account, e.g., on https://www.dropbox.com/ or other Dropbox client? It sounds like you may be looking for the "app folder" for your new app. Note that app folders are only automatically created for apps with the "app folder" permission. Did you perhaps register your…
-
Can you provide more details on this issue? We don't officially support Electron, but the OAuth flow itself is expected to work in Chromium (given that we officially support Chrome). 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 name…
-
@"rpmgr" No, unfortunately we have not added an exception to allow .local. I'm not aware of plans to do so currently, but I'll follow up here if that changes.
-
Great! I'm glad to hear you were able to get that working. For information on the OAuth app authorization flow, I recommend reviewing the OAuth guide and the authorization documentation.