Greg-DB Dropbox Community Moderator

Comments

  • If you're trying to download file content, you should instead use /2/files/download, for normal files, or /2/files/export, for things that can't be downloaded normally. Please refer to the documentation linked above for more information and examples.
  • Yes, you should use /2/files/upload to update a file. That will work for .txt as well as other extensions.
  • [Cross-linking for reference: https://stackoverflow.com/questions/63030833/update-content-of-a-cloud-file-with-dropbox-api ] A ".txt" file wouldn't be considered a cloud doc, so you should just use the normal file endpoints to interact with it. For example, to upload a new version, you should use /2/files/upload:…
  • I'm afraid we can't be of much help with this unfortunately, as it doesn't seem these files are being produced by Dropbox code. The Dropbox JavaScript SDK is open source, so you can see what it's doing at the following locations in the code for the 'filesUpload' method you're using, for instance: *…
  • @"homedeck" No, unfortunately I don't have any news on this request.
  • No, unfortunately the API doesn't offer the ability to set a specific depth of entries to return, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 
  • When you get 'has_more:true' back from /2/team_log/get_events, you need to call back to /2/team_log/get_events/continue using the returned 'cursor' (and so on). The exact page size for any single response from these endpoints is not guaranteed, so make sure you have that implemented so you can retrieve all of the results,…
  • Dropbox does not support processing the OAuth app authorization flow in a web view, so I'm afraid I can't offer help with that. Please update your app to use the system browser instead. You can find more information in the authorization documentation.
  • Yes, the Dropbox OAuth app authorization flow allows you to prompt the user to sign in to Dropbox to authorize your app, resulting in an access token you can use to upload files. Please refer to the links in my previous comment in this thread for information on how to implement that. If something isn't working as expected,…
    in Dropbox API Comment by Greg-DB July 2020
  • No, Dropbox doesn't support this limited input OAuth flow, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. You could likely implement something to that effect on top of the Dropbox API OAuth 2 code flow though. That would require you to maintain your own server…
  • [Cross-linking for reference: https://stackoverflow.com/questions/62998138/php-codeigniter-upload-file-to-dropbox-via-https-always-empty ] We can't provide support for that library itself, as it's not made by Dropbox. That said, it is possible to upload an empty file via the Dropbox API, so it sounds like this code isn't…
  • Dropbox does offer webhooks functionality. You can find information on how to implement it here: https://www.dropbox.com/developers/reference/webhooks
  • The FileNotFoundError "No such file or directory" error here is referring to the location on your local filesystem, not in the remote Dropbox account. That is, the first parameter you supply to files_download_to_file (and sharing_get_shared_link_file_to_file as well) is the "Path on local machine to save file". (For…
  • Currently, it's not possible to register an app for both "team member file access" and "team member management". So, if you do need access to both of those types, you would need to register two apps and have the user connect both of them, to get two access tokens. We are currently starting to roll out a new permission…
  • When you add a new member to a folder, they then have access to that folder, but the folder may not yet be "mounted" in their account. If the folder is not yet mounted in their account, it will not be listed in their file/folder listing (e.g., as returned by /2/files/list_folder[/continue]). Note that if the users A and B…
  • Thanks! From what I see based on this, this was likely due to some transient server issues, but please do let me know whether or not you're still seeing it. Either way, you may want to implement some automatic retrying in order to handle this if/when server errors do occur.
  • Thanks for the report! We'll be happy to look into this, but we could use some more information. Can you let me know the following: * Are you still seeing this issue now? * About when did you start seeing this? * About what percent of calls are failing like this? * How much data are you sending…
  • You don't need the shared folder ID from a shared link in order to list and download the contents of the shared link. You can use listFolderBuilder/listFolderContinue to list the contents of a folder based on a shared link to that folder. Use ListFolderBuilder.withSharedLink to set the shared link. Then, based on the file…
  • If you're using .NET, we recommend using the official Dropbox API v2 .NET SDK. That comes with several example apps. To get an access token for a user, you should send them through the OAuth app authorization flow. The SDK will do most of the work for you, as shown in this example. Your app should never handle the user's…
    in Dropbox API Comment by Greg-DB July 2020
  • If you want to get information about the contents of a shared link without downloading everything, you can use the Dropbox API endpoints /2/sharing/get_shared_link_metadata, to get information about the shared link, and /2/files/list_folder[/continue], to list the contents of the linked folder, if the shared link is for a…
  • For reference, the issue of not being able to use 'as_user' or 'as_admin' before 'with_path_root' should now be fixed as of v10.3.0 of the Dropbox Python SDK.
  • If you want to use the Dropbox API to share a folder with write/edit access, you should use the /2/sharing/share_folder endpoint to first make the folder a shared folder, if it isn't already. Then, you can add members with the desired access level (i.e., 'editor' in this case) using /2/sharing/add_folder_member. By the…
  • No, unfortunately it's not possible to get the account ID for any given email address, or otherwise check if the corresponding account is on the same team, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 
  • The Dropbox Chooser does offer a 'folderselect' option so you can allow users to select folders from their Dropbox accounts. You can find information on that in the Chooser documentation: https://www.dropbox.com/developers/chooser That only supports "preview" links, but you can then modify those links, e.g., for direct…
  • From the stack trace, I see that this code is attempting to use the 'files_upload' method to upload this file, which doesn't support files of this size. You should instead be using the upload sessions functionality for large files like this. Looking at your code, it looks like that 'files_upload' code path is mistakenly…
  • It looks like our messages just crossed. I'm glad to hear you sorted this out already.
  • Were you trying to move this file into that folder at "/Test folder"? A response from /2/files/move_v2 containing the updated metadata like this should indicate that the file was successfully moved, so it appears the move did work if that's what you were attempting. When you say "file is not shown in the folder", how are…
  • @"Moto_F" This request is still open with the team, but I don't have an update on it.
  • The current plan is to retire the Paper API endpoints in September of this year, per the migration guide. Of course, if anything changes, we'll make an announcement. Existing accounts may not have been themselves migrated yet, and I don't have a timeline to share for that, but if you want to test the new style, you can…
  • A 'path/not_folder' error indicates that the path you're trying to list is not a folder. You should make sure that the 'path' value you pass to files_list_folder refers to a folder, not a file. When you get the results, if 'path_lower' is not set, that indicates that the item is not mounted. You can find more information…