Greg-DB Dropbox Community Moderator

Comments

  • Yes, I'll follow up on this thread with any updates on this request. For reference, I'm not currently aware of work or plans to implement this, but I'll post here with any news or changes.
  • It seems I missed this thread back in May (apologies!), but in general an 'incorrect_offset' error happens when the app calls one of the append or finish upload session endpoints (or corresponding native methods in an SDK) with an "offset" value that does not match how much has actually been uploaded so far for that upload…
  • I've redacted it from your comment here for the sake of privacy, but yes, I've added it to your ticket.
  • You can use /2/sharing/get_shared_link_metadata and /2/sharing/get_shared_link_file to get the metadata and file content for a shared file, respectively, by passing "preview_url" as the "url" parameter. The Dropbox API doesn't offer a way to list the revisions for a shared file like that, but I'll pass this along as a…
  • Yes, by default, if the user has already approved the app and there is an https:// redirect URI being used, Dropbox may automatically redirect them to the redirect URI. You can prevent this from happening though by using the 'force_reapprove=true' option for the www.dropbox.com/oauth2/authorize authorization page. If you…
  • You'll receive updates to your ticket by email. They will be sent to the email address registered to the Dropbox account you used to open the ticket.
  • To use both the individual user endpoints and the Business endpoints for a connected team, you should use a "Dropbox Business API" app with the "team member file access" permission. You can register one here if you haven't already. (Note that Dropbox Business API apps can only be connected to Business teams.) With that…
  • Thanks for the feedback @"CrazySerb" ! I'll send this along to the team.
  • No, the Dropbox API itself doesn't offer any way to control your connection speed. To clarify though, is this something you've just noticed as you've begun implementing with the Dropbox API, or is this a new degradation in service where it was previously working better? If this was previously running faster for you and it…
  • I'm not aware of any current disruption to Dropbox API 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. That route may also be different than that to other providers. Sometimes resetting or retrying your connection…
  • Note that there are a multiple ways for an app to be disabled, e.g.: * the app itself could be disabled, e.g., via the App Console. If the app was disabled there while it was in "production" mode, you can re-enable it there. * the account that owns the app could be disabled, which would effectively disable the app. If the…
  • Thanks for the feedback! The previous revisions only exist within the namespace for the shared folder. When you unshare a shared folder, you essentially destroy that namespace, so its old contents are no longer accessible. I've sent this along to the team to see if we can change this, but I can't make any promises. I'll…
  • The 'file_lock_info' field is only returned for files that currently have a lock on them, and the 'file_lock_info.created' field would only indicate the time the current lock was created, not the creation time of the file itself. You can find more information on the different file metadata fields in the documentation for…
  • @"xsmael" If you want to create a shared link without a password, you would still use /2/sharing/create_shared_link_with_settings , but you would omit the 'link_password' parameter (and use 'requested_visibility' accordingly, i.e., either omit it it set it to something other than "password"). 
  • Since the shared folder was unshared, the account can no longer access the file data from the previous revisions, which only existed in the context of that shared folder. The ListRevisions method does confusingly return those old revisions though, so I'll ask the team to see if we can improve or clarify this behavior…
  • That's correct, when listing a folder based on the folder's path, if the path changes the folder will no longer be found. Здравко's recommendation of using the folder's 'id' instead of the path is a good one. That is, when calling /2/files/list_folder, supply the folder's id (which starts with "id:") as the 'path'…
  • @"Здравко" The Dropbox API actually supports range requests for all content-download style endpoints in general, so it's mentioned in the "Content-download endpoints" documentation. That could definitely be expanded on though, so I'll ask the team to improve that. Thanks!
  • I'm afraid that's correct; there unfortunately isn't a way to do exactly what you want to do here. While you can retrieve the metadata and file content for a particular file from a shared link for a folder like this using /2/sharing/get_shared_link_file as mentioned, the Dropbox API doesn't offer a way to retrieve the…
  • @"ndkhaivn" No, unfortunately I don't have any news on this request.
  • @"Sukanth" To clarify, are you seeing this error for the "Get Started with Dropbox.pdf" file as mentioned originally for this thread, or for something else? I'm not seeing this issue with that file currently, so if you're still seeing this, or it's for another file, please open a ticket with details so we can investigate.…
  • Yes, it looks like in that case you've only written a portion of the file, so you could check how much of the file you did write, and then use DbxDownloadStyleBuilder.range to download just the rest of the file. Also, if it's helpful, you can use the "Content Hash" feature, available in the Java SDK…
  • For cleaning up after failed operations, if an API call fails when you're using the Java SDK, it should raise an exception you can catch so you can perform whatever cleanup you need, such as deleting local files. For restarting downloads, you can actually use DbxDownloadStyleBuilder.range to restart a download at whatever…
  • [Cross-linking for reference: https://stackoverflow.com/questions/60007404/camel-dropbox-component-search-query-to-return-all-files-from-directory ] It sounds like you're using a Camel component made by a third party. As that's not made by Dropbox, I can't offer help with it. On the Dropbox API itself, the search endpoints…
  • Thanks for the detailed question! The "development"/"production" status wouldn't be the issue here, and most of the rest of your understanding is correct. (And if you don't need to connect to more than 50 users, you don't need production status regardless.) It sounds like the issue here is that each user receives their own…
  • Thanks, but still to clarify, what exactly are you doing to get the result in that second screenshot? That appears to be a Dropbox HTML error page, but the response in the first screenshot indicates that the response was just plain text, not HTML. That 400 response should indicate that the API request wasn't correctly…
  • No, unfortunately the /2/files/save_url endpoint doesn't offer "write mode" options, e.g., to overwrite an existing file at the specified location, like /2/files/upload does. I'll pass this along as a feature request, but I can't promise if or when that might be implemented. I'm not sure I understand your other comment…
  • Thanks for the feedback! I'll send this along as well.
  • This forum thread serves as the reference for the feature request. I'll follow up here if/when I have any news on this.
  • That "Unexpected select user header" error indicates that you're using an access token for an app that is not allowed to use that feature. That feature is only meant for "Dropbox Business API" apps registered for the "team member file access" permission. So, for instance, you might be using an access token for a "Dropbox…
  • No, unfortunately /2/files/export doesn't support exporting as Markdown, nor is there another way do that in a 'paper_as_files' account, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. Update: the /2/files/export endpoint now supports exporting .paper files as…