Comments
-
By default, API calls will operate in the private team member folder. It sounds like you want to access the team space though. To do so, you need to set the "path root" for the API call to be the team space. I recommend reading the Namespace Guide, which covers this in detail. In the Python SDK in particular, to specify a…
-
@"ijunaid8989" All of the upload sessions that you wish to finish using /finish_batch need to be "closed" before you call /finish_batch. That message is indicating that the upload session was not closed. You should close the upload session with the last call you make to upload the final data for that upload session,…
-
In the Dropbox Python SDK, you can specify this header using DropboxTeam.as_user. You can get the team member IDs from a number of places, such as DropboxTeam.team_members_get_info, or DropboxTeam.team_members_list/DropboxTeam.team_members_list_continue.
-
Thanks for the note! I can't make any promises, but I'll pass this along to the team.
-
@"jondotcom" No, unfortunately I don't have an update on this request.
-
The webhook notification includes the account ID of the user who had changes in their account. You can use that account ID to look up the user in your app so you know which one to update. This means you do need to record the Dropbox account IDs originally, but exactly how you manage your app's user model and database is up…
-
@"astaley" Thanks for the note! That looks like a usable workaround if the link is publicly accessibly. To clarify for others, you can directly download from links like this by using the URL parameters documented here. This is unrelated to the actual Dropbox API though, and would only work if the link is publicly…
-
Yes, the Dropbox API does offer a way to programmatically create shared links like that. Note that the other forum thread isn't exactly describing what you want to do though. To create shared links using the Dropbox API, you should use the /2/sharing/create_shared_link_with_settings endpoint:…
-
First, to clarify, if you're only using a Dropbox API app, not a Dropbox Business API app, you should not use the "Dropbox-API-Select-Admin". You can access the Dropbox API endpoints, such as the list_folder endpoints, without that header. The basic flow for using webhooks with list_folder would go like this: * the user…
-
In this code I see you're using the 'finish' method, presumably once per file, to finish the uploads. If you send off multiple of these at the same time, you will cause lock contention. You should use a single 'finish_batch' to finish multiple file uploads in a single call to avoid this. (Or, only send the multiple…
-
Thanks for the post! It sounds like you're referring to the recent deprecation of the 'include_media_info' parameter on /2/files/list_folder. Unfortunately this is necessary in order to support some changes on the Dropbox backend, but I'll send your feedback along to the team.
-
If you want to get a zip of a folder on Dropbox, the 'filesDownloadZip' method you already found is the right method. (If you only wanted a single file, you would use the 'filesDownload' method. In either case, when performing a download call like this in Node, if the call succeeds the resulting data is in the 'fileBinary'…
-
If has_more is false, you should be getting all of the results for that folder in the account for that access token. It doesn't look like you're doing anything wrong here, so we'll need to look into this more closely. Can you open an API ticket and share that 'whee.txt' file so we can investigate? Thanks in advance!
-
I escalated this to the relevant engineering team in charge of the Dropbox web site. They reviewed this and unfortunately they're reporting that we can't offer a fix as this is only occurring in unsupported browsers. It is important going forward that you use officially supported browsers/versions, for the sake of…
-
Each of the /start, /append, and /finish endpoints, but not /finish_batch, can accept file data. You would need to use /append if there is more data than you can send in the /start and /finish requests. Upload sessions work by having you send only a portion of the file's data per request. Exactly how much data you send per…
-
Thanks! That's helpful. I'm bringing this up with the team. Again though, I unfortunately can't promise a fix as this browser isn't officially supported.
-
@"L0h1cB3n3yz3t" I don't know if dn1 has any information they can share to help with this, but please feel free to open a new thread with the specifics of what's currently not working for you and we'll be happy to help with whatever we can regarding the Dropbox API.
-
Thanks for the information! Can you share the User-Agent string though? You can get it by going here in the browser, for instance: https://www.google.com/search?q=What%27s+my+User+Agent
-
@"hosamsandid" The variable 'j' was used in the original code sample shared in this thread, but the definition of its value wasn't shown. In that context though, it would've just been a file name, like "example.jpg". It was used both on the Dropbox API, formatted as "/example.jpg", for instance, and to open a local file.
-
I just tried this myself with an Android 6.0 emulator, and I'm not seeing the behavior you're seeing: Can you share the exact User-Agent for the browser you're using, as well as any JavaScript errors from the page?
-
I see, thanks for clarifying. Unfortunately, as that browser is not officially supported, I can't promise a fix, but I will bring this up with the team.
-
@"jose2020" @"Wikt0r" Thanks for the reports! We're looking into it.
-
If you want to commit multiple file uploads at once, and avoid the you should use /2/files/upload_session/finish_batch. That endpoint does not only take a single file name/upload session ID. Its UploadSessionFinishBatchArg.entries parameter takes a list of multiple UploadSessionFinishArg. You can find information on that…
-
The Dropbox API unfortunately does not offer a way to list folders only, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. As a workaround, you'll need to list everything and filter out the file entries client-side.
-
I'm not sure I understand your message. Can you clarify what you mean when you say you get a blank page from an API request? Dropbox API requests involve communicating with the Dropbox API servers, typically exchanging JSON, not HTML web pages, over HTTPS. Are you referring to the Dropbox app authorization page itself…
-
As a security feature, all redirect URIs used for an app must be pre-registered for the app. If you attempt to use a redirect URI that hasn't been registered, you'll receive this error. To register an OAuth 2 redirect URI, access the app's page on the App Console by clicking on the app's name there:…
-
Can you share the relevant code and output so we can take a look and advise? (Feel free to share privately by opening an API ticket if you'd prefer.) Be sure to redact the access token though. Based on your description however, it sounds like you might be running in to an issue because you're not specifying the right…
-
For reference, the error handling on the API itself should be fixed now.
-
The error handling on the API should be fixed now. This case should no longer return a 500 and will instead properly return a 409 for revisions that can't be restored.
-
Apologies for the delay! It looks like your post got caught in the forum's spam filter for some reason. It was just restored. Anyway, can you share the code you're using to upload the files in this case? It sounds like something may be going wrong during the upload resulting in the incorrect data getting committed.