Comments
-
Some other kinds of changes may work, but I can't guarantee if that's officially supported. I'll ask the team to confirm this and document it explicitly.
-
@"paulrenshaw-tls" We're still tracking this feature request, but I don't have an update on it. The team hasn't implemented this feature.
-
@"buttflattery" While Dropbox API still doesn't offer a way to programmatically upload to file requests, if you can run JavaScript in the browser, you could avoid uploading the file to your own server first, by uploading the file to Dropbox directly from the browser. For instance, you can make the /2/files/upload call…
-
This should be working again. However, please note that sending non-ASCII characters in HTTP headers is not officially supported, so please make sure to encode them as documented.
-
Attempting to upload to an unmounted shared folder will fail. The shared folder needs to be mounted for an app to make changes in it. We should return a better error message in this case though. I'll ask the team to update the API to return a useful error when this is attempted. Thanks!
-
No, the Dropbox Chooser doesn't offer a way to disable the upload functionality, or to preview images. The Dropbox API itself also doesn't offer a way to retrieve preview links. It just offers a way to retrieve preview data directly. I'll pass these along as feature requests, but I can't promise if or when they might be…
-
With an access token for an app folder in a particular account, you can access anything in that app folder. You will need to specify the correct path though. A 'not_found' error indicates that you're not specifying the correct path. You cannot access anything outside that app folder though. I recommend first using…
-
Thanks for reaching out! Dropbox does offer an API you can use for listing, uploading, and downloading 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 To get familiar with the API,…
-
The Dropbox account that your app connects to is controlled by the access token the app is using. (Every Dropbox API access token identifies a specific app-account pair.) When the user first authorizes your app, they allow it to access the account they sign in to at that time, and the resulting access token is then always…
-
Thanks for the report! We'll look into whether something changed, but note that whenever you supply non-ASCII characters in HTTP headers, such as for the /upload endpoint, you should first encode them. We have documentation on this here: https://www.dropbox.com/developers/reference/json-encoding For example, you can see…
-
For the first way, note that you can determine the relative nested path from the responses from /2/files/list_folder. For example: * call /2/files/list_folder with the 'shared_link', and 'path:""' => the result shows the "Sub Folder 1" * call /2/files/list_folder with the 'shared_link', and 'path:"/Sub Folder 1"' => the…
-
@"overlookmotel" I don't know if the fix for this is difficult or not, but I'll pass your feedback along to the team.
-
@"overlookmotel" We have been able to reproduce and investigate the issue, but there doesn't appear to be a workaround.
-
Thanks, I better understand the issue now. I see that you're passing in axios as your fetch library, and the failure is occurring in the Dropbox JavaScript library when attempting to process the OAuth result. I've reproduced this by likewise passing in axios. I've also confirmed that actual API calls fail when using axios.…
-
@"overlookmotel" I'm afraid I don't have any news on this. This is still open with engineering, but I'll bring it up with them again and follow up here if/when I have anything to report.
-
The "id" values for the listed items, starting file "id:", is the "file ID", which is different than a "shared folder ID", so you can't use that for /2/sharing/get_folder_metadata, You can use the "path" parameter to list a subfolder when accessing a shared link via /2/files/list_folder though. That would look like: curl…
-
Thanks! Those variables types and values look fine. I just tried this with those same versions of dropbox and requests though, and I didn't get that error. Have you modified the dropbox or requests libraries at all, or do you have anything in your code that may be impacting the types? If you can share the minimal code…
-
I'll be happy to help with this, but I'll need some more information. Can you let me know: * What are the types and values of 'dst' and 'src' in this code? * What version number of the 'dropbox' library do you have installed? * What version number of the 'requests' library do you have installed?
-
We don't have any specific support for vue.js in particular, but we'll be happy to try and take a look. First, do you get a stack trace for this? What specific line is this failing in?
-
Each Dropbox API access token is specific to a particular app-user pair, and enables access to that particular account to the extent allowed by the app's access type (a.k.a. "permission"). For example, if the app is registered for the "app folder" permission, it will only be able to access the contents of the app folder…
-
@"Bharath_Nadig" Yes, the Dropbox Java SDK also has support for the "member file access" feature. You can use the DbxTeamClientV2.asMember or DbxTeamClientV2.asAdmin methods to get a DbxClientV2 with the 'Dropbox-API-Select-User' or 'Dropbox-API-Select-Admin' header set, respectively.
-
If the code doesn't seem to be running or responding, I recommend stepping through with the debugger first to determine where it's breaking down. For instance, in the code sample I shared, 'DropboxClientsManager.authorizedTeamClient' needs to be set, in order to make the API calls. That gets set during the authorization…
-
It sounds like you're switching from a "Dropbox API" app registration to a "Dropbox Business API" app registration. Just for reference, "Dropbox API" apps can be connected to any kind of Dropbox account individually (including Business accounts) in order to access the files in that account. For example, you can list,…
-
Right, to be clear, the include_media_info parameter is only deprecated on /2/files/list_folder, not /2/files/get_metadata. And yes, for a substantial number of files, calling /2/files/get_metadata for each one would not be very efficient. And that's correct, for the second option I am referring to parsing the file…
-
The Dropbox API functionality for listing folders is generally only meant for mounted content, but you can technically list the contents of an unmounted folder by calling /2/files/list_folder with the 'preview_url' (e.g., from the shared folder metadata) as the 'shared_link.url' parameter, like: curl -X POST…
-
[Cross-linking for reference: https://stackoverflow.com/questions/58229661/can-you-use-dropbox-api-to-read-write-json-in-production ] Yes, with the setup you describe, you could certainly experience a race condition where some data is lost, if there are two writes around the same time, and you have the app overwrite the…
-
There are two ways you may want to approach this, each with their own advantages and disadvantages: * For each file, call /2/files/get_metadata with include_media_info:true and check the resulting file.media_info.metadata is a PhotoMetadata. The advantage here is that this would indicate that the file is a valid image,…
-
No, the Dropbox API doesn't currently expose the ability to set folder overviews programmatically, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
-
@"avieini" While the 'files_list_folder' method does not support the native 'recursive' mode when listing from a shared link, you can iteratively list out the contents of the subfolders, by calling again with the relevant 'path' value(s). For example, say if I make the first call: print(dbx.files_list_folder(path="",…
-
Looking at your code, a few things come to mind: * You're always calling `json_decode` in the exception handler, assuming the error response is always JSON, but this isn't necessarily true. (It can be plain text, for instance.) You should first check the response's Content-Type header value to determine the type of the…