Greg-DB Dropbox Community Moderator

Comments

  • The Dropbox API doesn't ban IP addresses or deny specific hosts like this. If it decides to reject a request, it would send back an error response with a specific error code, such as 429. Given that it works on some of your machines/servers, it does sound like there's something blocking the connection on some of them. Let…
  • While it may require more than one API call, using the /2/files/list_folder[/continue] endpoints (or corresponding native methods in the SDKs) is the best way to check if a particular folder is empty or not. The exact number of entries per page and total number of pages is not guaranteed and may vary by folder/account, so…
  • @"Vasilinka" We've received the feedback, but at this time we don't have any plans to change the policy. Thanks!
  • Dropbox does offer a "file request" feature that allows you to create links that other people can use to upload files to your Dropbox account. You can find information about that in the help center. You could create those file request link(s) and then make QR codes for those link(s). The Dropbox API also offers the ability…
  • I just gave this a try myself, plugging in my own access token and local file path, and it successfully uploaded a non-empty file as expected for me. You should check that your local file is non-empty and is being accessed successfully. For instance, check what the value of "$size" is for you, and make sure your…
  • The third parameter to that ChunkUpload method is supposed to the "fileName" you want to upload the file as on Dropbox, which might look like "exampleFile.txt", for instance. You are instead supplying "C:\Example\exampleFile.txt" which is a local Windows file path, and not a valid Dropbox file name.
    in help with c# Comment by Greg-DB May 2021
  • The Dropbox API doesn't offer a strict/exact search option like that, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
  • @"FilipRachunek" This issue is still open with engineering, but I don't have an update or timeline right now. I'll follow up here once I do.
  • I see someone already helped you sort this out in another thread. Here's the link for anyone else looking for the answer.
  • Apologies, it appears that's correct and this field depends on that feature being enabled. I'll bring this up with the team to get that reflected in the API documentation.
  • Thanks for upgrading and letting me know. Can you confirm if this is the full output you're getting now though? It seems to be a different kind of issue than seen in your original post. (For instance, it no longer says "Object reference not set to an instance of an object" or the GetRequestId method.) Anyway, since it is…
  • [Cross-linking for reference: https://stackoverflow.com/questions/67710163/display-image-from-dropbox-to-a-webpage ] I see from your StackOverflow post that you already sorted this out.
  • I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: * the name and version number of the platform and SDK/library you are using, if any * the steps to reproduce the issue, including relevant code snippet(s), but don't include any access token(s)…
  • @"Vasilinka" I cannot disclose Dropbox employee contact information. I've sent your feedback and comments along to the team, and I'll follow up here if/when I have anything else to share.
  • From the code you shared, it doesn't look like you're doing anything wrong. I just gave this a try myself and I am seeing time_last_seen set as expected. Can you share some more information so I can look into this further? For instance, what steps did you take to share the file, and how did the recipient view it?…
  • First, note that sharing_create_shared_link is deprecated in favor of sharing_create_shared_link_with_settings. For this use case, it sounds like you may want to create the link like this: dbx.sharing_create_shared_link_with_settings(path=path,…
  • You can use the "quiet" parameter on /2/sharing/add_folder_member to suppress device and email notifications. The /2/sharing/add_file_member endpoint also has a "quiet" parameter, but that one only supports device notifications, not email notifications. I'll pass this along as a feature request for support for suppressing…
  • Thanks for the additional information. That doesn't look like the particular version information I was looking for though. Can you share the version number of the Dropbox SDK itself, e.g., as you installed via NuGet, for instance? The latest version is currently v6.6.2. Also, looking at the stack it looks like you are not…
  • The ListFolder interface is paginated, and so you aren't guaranteed to get everything returned in one call like this. You'll need to also implement the ListFolderContinueAsync method. Please refer to the ListFolderAsync documentation for more information. I also recommend reading the File Access Guide and Team Files Guide.
  • Dropbox doesn't offer an FTP interface, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. Dropbox does offer an API that works over HTTPS though that you can use to programmatically upload and download files, among other operations. You can find everything you need…
    in FTP Comment by Greg-DB May 2021
  • @"9krausec" I don't believe we have a sample of this in Python handy unfortunately. I see you have an open ticket with support about this though so we'll take a look at that and follow up with you there.
  • Are you using an API app registered with the "app folder" access type? There's currently a bug that results in this error when using this method with an access token for an app folder app. That's still open with engineering, but I don't have a timeline on a fix.
  • When supplying a particular path, the /2/sharing/list_shared_links endpoint "returns a list of all shared links that allow access to the given path - direct links to the given path and links to parent folders of the given path". So, if you call it for a specific file and see a folder link, that means that there's a shared…
  • Taking a look at the commit history for that third party library, I see that the last commit was in 2017, which was before the new functionality was added to the API, so it does not appear that library has been updated to use the new functionality. Anyway, I can't offer insight on what factors went in to deciding what SDKs…
  • All Dropbox API calls use HTTPS, so they go to port 443 on the relevant Dropbox API servers, which, for uploading and downloading file content via the official .NET SDK, is content.dropboxapi.com. As for the error you're getting, can you let me know what version number of the SDK you have installed, and share the relevant…
  • @"9krausec" That indicates that the job is not done yet. You'll need to poll it until it's complete. That is, call it once every few seconds until it returns the result.
  • @"9krausec" You'll need to poll files_upload_session_finish_batch_check to check on the result of the job. If you're not seeing anything uploaded, something must have failed, and the result from files_upload_session_finish_batch_check should tell you what it was.
  • @"Vasilinka" Thanks for the additional feedback. I can't offer much more insight on the specifics of what went in to determining policies, but you can find the documentation for this here. And yes, this thread is publicly available here.
  • You can actually do either. If you want it to default to whatever is set for the app on the App Console at that point in time, you should pass in null. If you want to be specifically defined by the code, even if additional scopes are added to the App Console, you should pass the specific desired scope list. (Note that you…
  • The 'missing_scope' error indicates that while the app is permitted to use that scope, the particular access token you're using to make the API call does not have that scope granted. Also, be aware that just adding a scope to your app via the App Console does not retroactively grant that scope to existing access tokens.…