Greg-DB Dropbox Community Moderator

Comments

  • The uploadBuilder method should only be used for uploading files smaller than 150 MB. For larger files, you need to use upload sessions. Please refer to the documentation for more information. You can find example code here.
  • @"mplusplus" Selecting "Full Dropbox" is the right choice in this case. That covers all folders, including team folders. Check out the File Access Guide and Team Files Guide for information on how to interact with the Dropbox filesystem via the API.
  • Thanks! That does show the raw PDF data, indicating that the Dropbox API call itself did succeed and return the file data. That being the case, it looks like the issue here is with writing that data to the local filesystem. As that's not related to the Dropbox API itself, I'm afraid I can't offer much help with that.…
  • @"Steve J.5" Thanks for the feedback! I'll pass this along to the team.
  • This shows your request headers and code, but not the response headers or body. Can you inspect the response headers/body? Also, do not post your access token, since it enables access to your account. You should revoke it since you've posted it publicly.
  • What about the rest of the response? What's in the headers and body?
  • First, can you confirm that the "/test/BackcardHTTPS.pdf" file on Dropbox itself is not empty and does contain the expected data? Then, can you inspect the API response? Check the status code; if it's not 200, then the call failed for some reason. You should also check the response headers for metadata, and response body…
  • We've extended this migration to ensure a smooth experience for all, and will keep the legacy Paper API available until the migration is done for everyone. You can find the latest information in the Paper Migration Guide.
  • IDs that start with "dbmid:" are "team member IDs", often named "team_member_id" on the API. There are a number of ways you can retrieve that via the API, such as by calling /2/team/members/list_v2[/continue], to list all team members, or /2/team/members/get_info_v2, to look up a specific team member. Those are…
  • @"raRaRa" First, for reference, note that performing a refresh does not itself invalidate any previous short-lived access tokens for that refresh token, or any temporary links created using those previous short-lived access tokens. However, due to how temporary links are implemented, they are reliant on the validity of the…
  • @"Edis" Yes, I'm working on getting an update on this.
  • Another option is to use the Dropbox API to download the file, such as via /2/files/download. That would be more work to integrate than the Dropbox Chooser, and would not necessarily offer better performance.
  • Thanks for the report! We'll look into it.
  • Yes, if you need to be able to read and delete files, you can register a Full Dropbox app with the "files.content.read" and "files.content.write" scopes. The "files.content.write" scope lets you both write and delete files. The "files.permanent_delete" scope is only needed for permanently deleting files, not just deleting…
  • According to the release history, the first release of the Dropbox Java SDK with the short-lived tokens functionality was v3.1.0. The last one before that was v3.0.11.
  • There isn't a way to simply speed up these connections. Your connection speed to Dropbox depends on the routing you get between your ISP and our servers, and may be slower than your ISP's rated speeds. Sometimes resetting or retrying your connection gets you a different route and better speeds, but that is outside of our…
  • @"mitko-slapdash" I don't have any news on this right now.
  • I see you're making the second ListFileMembersAsync call like this: userClient.Sharing.ListFileMembersAsync(fileMembers.Cursor) However, to retrieve more results via the cursor, you should actually call ListFileMembersContinueAsync, not ListFileMembersAsync.
  • Я буду рад помочь, но мне понадобится дополнительная информация. Пожалуйста, ответьте: * номер версии используемого вами Dropbox SDK * размер файла, который вы пытаетесь скачать * полный текст любой ошибки или неожиданного вывода * время, необходимое для вызова API, прежде чем возникнет проблема -----------– Пожалуйста,…
  • 1. Short-lived access tokens, such as retrieved by authorizeFromControllerV2, do expire after four hours. The authorizeFromControllerV2 method actually requests "offline" access though, so it receives a refresh token in addition to the short-lived access token. 2. If you use authorizeFromControllerV2 as documented, the SDK…
  • [Cross-linking for reference: https://stackoverflow.com/questions/68094001/dropbox-python-api-move-empty-folder-to-another-folder ] A 'to/conflict/folder' error indicates that the move failed because a folder already exists at the specified destination path. When moving something via the API, the destination path you…
  • I don't have any change to report on the web view policy. You can find the release history and notes for the official Dropbox API v2 .NET SDK here: https://github.com/dropbox/dropbox-sdk-dotnet/releases
  • That error message indicates that the call failed because that /2/sharing/get_file_metadata endpoint doesn't support apps with the "app folder" access type, as noted in the documentation. I don't have context on your use case, but for reference, if just you want to create a shared link for the uploaded file, you should use…
  • Can you print out the response body? It should contain a more specific error message.
  • Yes, if you need long-term access without having the user re-authorize, you should request "offline" access to get and use a refresh token to get new short-lived access tokens as needed. There's a "PKCE-backend" example that shows how you can request this kind of access, and then set the resulting refresh token using…
  • When using the Dropbox Chooser, it will return the link to each selected file in the "link" field of the returned object for each file. I see you're using "linkType" of "preview" here. If you just want to download the selected file data, you should use a "linkType" of "direct" instead. That will make the returned "link" a…
  • Si desea incrustar el contenido de un enlace compartido de Dropbox en una página web, debe utilizar el incrustador de Dropbox: https://www.dropbox.com/developers/embedder Si aún no lo está utilizando, pruébelo. Si ya lo está utilizando, comparta los pasos que está siguiendo y muestre el error / resultado que está…
  • Dropbox does offer an official .NET SDK for Dropbox API v2, which you can find here. That comes with several example apps, including sample code updated for the new authorization functionality, such as in OauthBasic and OAuthPKCE.
  • Yes, we got the docs back up. It looks like the DropboxTransportClient class in particular isn't being included in the documentation though. I'll see if we can get that done.
  • The /2/files/download endpoint can only download files in the connected account. "Received" files, such as listed by /2/sharing/list_received_files, aren't mounted in the connected account, and so cannot be downloaded that way. You can instead use /2/sharing/get_shared_link_file and pass in the "preview_url" as the "url"…