Comments
-
You're getting a `NetworkOnMainThreadException`, which means you're trying to make a network call on the main thread, which isn't allowed on Android. (The `finishFromCode` method makes a network call to the Dropbox API servers to exchange the authorization code for an access token.) You would need to make this call on a…
-
Regarding the TypeError issue, please refer to this recent JavaScript SDK issue for more information and a workaround: https://github.com/dropbox/dropbox-sdk-js/issues/172 (Note that filesDownload and filesGetThumbnail download data in the same way.) The ".tag" value is expected. That identifies the type of the entry, and…
-
[Cross-linking for reference: https://stackoverflow.com/questions/48600061/simple-code-to-upload-a-video-to-dropbox-with-python ] It looks like you already got this sorted out using upload sessions in your StackOverflow post.
-
Thanks for following up. The Dropbox API doesn't offer a way to rename the file using just its id and new name without specifying the new path, but I'll pass this along as a feature request.
-
You can clone or download the repo here: https://github.com/dropbox/dropbox-sdk-java There are instructions for running the Android sample, included with the repo clone or download at /examples/android, here: https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android If you attempt to make any API v1 calls,…
-
Using /2/files/move_v2 is the correct way to rename a file, even if you don't need to move its folder location. For example, to rename a file inside a "Documents" folder, you would supply values like: from_path:"/Documents/old_name", to_path:"/Documents/new_name" Or, using the ID, you would still use move_v2, with values…
-
That error is indicating that the `path` value you supplied doesn't match the expected format. The value "/folder/File.ext" would match, but it looks like that's just an example. Can you share the exact value you're supplying when you get this error? For example, if you're supplying a file path, make sure it starts with a…
-
For Android, we recommend using the official Dropbox API v2 Java SDK: https://github.com/dropbox/dropbox-sdk-java There's an example Android app here: https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android We don't have a simpler example than that for Android, but you can see how it performs an upload…
-
There are examples of using the SDK to upload and download files here: https://github.com/dropbox/dropbox-sdk-obj-c#request-types For instance, here is an example of downloading a file to a file specified by an NSURL: https://github.com/dropbox/dropbox-sdk-obj-c#download-style-request In that example, the file gets saved…
-
@"srinivas1995" Please open a new thread with the specifics of the issue you're seeing so we can take a look. Thanks!
-
I'm afraid I can't help with potentially incorrectly flagged files, so if you believe you have files that have been incorrectly flagged, please contact support.
-
Thanks for the report! We're looking into it.
-
Thanks for writing this up and sharing it!
-
The path/restricted_content error is expected from /2/files/download for files with restricted content, per the documentation: https://www.dropbox.com/developers/documentation/http/documentation#files-download If you believe you have files that have been incorrectly flagged, please contact support.
-
@"rhernandez8305" We do have some samples included with the Python SDK on GitHub. For instance, here are some download calls: https://github.com/dropbox/dropbox-sdk-python/blob/master/example/updown.py#L157…
-
Please make sure you have the updated polyfills included: https://dropbox.github.io/dropbox-sdk-js/tutorial-Getting%20started.html
-
This should be fixed now as of v3.0.4, but note the updated polyfill information here.
-
Thanks for the report! We're looking into it.
-
It looks like you already have the code for uploading to Dropbox, so you'd need to write some more code for decided whether or not to do so for any particular local file. That's not specific to the Dropbox API though, so I'm afraid I can't offer much help in that regard. For example, you may want to retrieve the local…
-
@"matejukmar" I don't have an update on this unfortunately.
-
The Dropbox API does offer an official Python SDK with the ability to list, download, and upload files, among other operations, so this certainly should be possible. For instance, you could use files_list_folder and files_list_folder_continue to list the contents of any desired Dropbox folder (e.g., "/Queue") and then…
-
No, unfortunately the move API call doesn't currently offer a way to set the write mode (e.g., 'overwrite' in this case), but I'll pass this along as a feature request.
-
@"guilhermegarcia" There's nothing about VPNs in general that should be affecting this. I just tried it, and raw=1 links are working properly for me in Chrome, Safari, and Firefox, all both on and off a VPN. That being the case, it sounds like there may be something about your VPN connection in particular that is…
-
[Cross-linking for reference: https://stackoverflow.com/questions/48482899/dropbox-api-with-django-authentication ] It looks like your question is more about using Django itself than the Dropbox API, so I'm afraid I can't offer much help. It looks like you already got some help on this on StackOverflow anyway though.…
-
Thanks! I just tried this and it appears this endpoint isn't working for Dropbox Business API apps. I'll ask the team to investigate whether or not we can add support for Dropbox Business API apps to this endpoint.
-
The API now offers the ability to list file revisions across moves/renames, by using the file ID. In the .NET SDK, that's available via the ListRevisions method. You can find more information in the documentation:…
-
The Dropbox API now offers the ability to download folders as zips. In the .NET SDK, that's available as: https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_DownloadZipAsync_1.htm
-
@"OneLoginAdmin" I'm not sure I understand what you mean when you say it "is pretending to use old app authentication?". The /2/auth/token/from_oauth1 endpoint is an API v2 endpoint that uses app authentication. That means it requires the app key and secret as Basic credentials, and takes the OAuth 1 access token key and…
-
My sample, using your structure but plugging in my own access token, is working for me in Chrome, Safari, and Firefox. What browser are you using? If you check using the developer tools, what's the actual HTTP response that you get?
-
That URL structure looks right for accessing file data via /2/files/download using a GET request. What exactly isn't working for you? What error or unexpected output are you getting?