Greg-DB Dropbox Community Moderator

Comments

  • The /2/sharing/get_shared_link_file endpoint is the right way to download a file from a shared link using the Dropbox API, and the code samples looks correct in general. Based on the output you shared, it looks like the issue is with the formatting/escaping of the characters in the sample for the environment you're using.…
  • I just gave this a try and it looks like the Dropbox API itself is working properly. I can't officially provide support for axios, but it looks like the issue is the callback function definition you're using. The axios client apparently just returns a single result variable, not a pair of `req, res` like you're trying to…
  • @"LRomano" What errors are you getting now? Looking at your code, I expect the issue is that you're not specifying the correct file path for the file to move. The Metadata.name that you're using is just the name of the file, not the full path. To get the full path, including any parent path components, you would need to…
  • It sounds like you're using the "code" flow, so Dropbox will return an "authorization code", not an access token. When using the code flow, once you receive the authorization code, you need to then exchange it for an access token using /oauth2/token. Check out the /oauth2/authorize and /oauth2/token documentation for more…
  • That is the text you can use as trademark attribution for Dropbox, but I can't provide legal guidance, such as for writing or structuring the terms/license agreement for your app. I recommend you contact a legal professional for any assistance you need with that.
  • @"hahmed44" I did not investigate the errors in detail. You'll need to use the browser's developer tools to inspect and debug them. it's certainly possible they are related to the issue you're having with your player. I didn't see anything broken on the Dropbox side, but let us know if you find an issue with Dropbox itself…
  • Are you looking for a trademark attribution for Dropbox? If so, please use this attribution: DROPBOX and the Dropbox Logo are trademarks of Dropbox, Inc. Otherwise, for help drafting your terms/license, you should contact a legal professional. 
  • The /2/file_requests/get endpoint is for retrieving the information about a 'file request', not a file itself. (A "file request" is a way to receive files from other people.) To get the data for a particular file, you should instead call /2/files/download.
  • @"dclancer" Can you elaborate on what you're trying to do? This thread was originally about accessing a particular piece of functionality via the Dropbox API. If you're not a programmer using the Dropbox API, you may be better served in this section of the forum instead.
  • @"FJBDev" I don't have any update on this request, and I'm not aware of any current plans to implement it. 
  • When calling /2/sharing/get_shared_link_file, 'url' would be the shared link URL, and 'path' would be the relative path for the file you want. So, for your example above, you could use: 'url': 'https://www.dropbox.com/sh/1dj7xiu7s0kgqoo/AADQjza7GmZlOFZk9pk0KHVda?dl=0' 'path': '/Papa Smurf.pro'
  • Yes, thanks, that's visible now. It looks like you're trying to call the Route object itself, but those aren't the methods for making API calls. To move or rename a file, you should use dropbox.Dropbox.files_move. You can find some basic examples of making Dropbox API calls using the Dropbox Python SDK in this example,…
  • I see, thanks! I'll ask the team to see if we can get that fixed up to show there for file requests created via the API as well.
  • The /2/files/download endpoint only supports downloading files in the connected account, so this error is expected in this case. For this use case, you'd instead need to use /2/sharing/get_shared_link_file (sharingGetSharedLinkFile). Both of those only support "user authentication" though, so an access token is necessary.…
  • Your image unfortunately is not loading. Can you try sharing that again?
  • I'm not sure I understand your current setup. To clarify, are you trying to import the official Android example for the Dropbox Java SDK into your own third party application? That's just intended as a sample, and not something you would import into your own app. You can follow the instructions here to build and run that…
  • Thanks for the report! I just gave this a try though and it appears to be working properly for me. I also tried making one with this code, slightly modified to make the deadline a few seconds in the future, and the file request properly expired for me. Can you elaborate on what you mean when you say "it doesn't seem to…
  • @"entotto" Thanks for the feedback! I'll pass this along to the team. @"euxn" No, unfortunately I don't have an update on this.
  • Apologies, I should have pointed out OKHttp in particular is a bit of a special case here, since it's considered optional when using the SDK. I see you're trying to use the Android example app though, which does use OKHttp, so you'll want to include that dependency. There's a note about this here:…
  • It looks like you're trying to load the Dropbox SDK and dependencies directly from jar files yourself. I recommend just letting Gradle handle all of this though, by listing Dropbox as a dependency as shown here, like this: implementation 'com.dropbox.core:dropbox-core-sdk:3.1.3' That should take care of downloading…
  • That output indicates that the team you're connected to does use the "team space" configuration. The 'is_team_folder' will be returned as true for the team space itself, as you saw, but not for other folders inside the team space. Those other folders still get their own shared folder IDs though. It sounds like you're…
  • [Cross-linking for reference: https://stackoverflow.com/questions/61527512/dropbox-file-download-error-path-not-found-using-c-sharp ] @"ABDUL_REHMAN" If you're using an app with the "app folder" permission, you don't need to include the path of the app folder itself when making API calls, such as "/Apps/Retailme".…
  • @"ahmedcoo" For information on how to list all of the files/folders in an account using the Dropbox API in C# via the official Dropbox .NET SDK, please refer to my earlier comment here:…
  • Dropbox does offer an API you can use for listing, uploading, and downloading files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here: https://www.dropbox.com/developers For example, to upload files, you can use the…
  • The Dropbox API itself doesn't offer a way to get files directly from SSH connections like this, but to clarify, note that the "path" parameter you're referring to is how you specify where in the connected Dropbox account you want to put the uploaded file. It is not how you specify where the actual file data to upload…
  • The 'sharing_info' is only set on a folder if the folder is itself shared as a shared folder (or is inside a shared folder). Note that this is different than the kind of sharing offered by /2/sharing/create_shared_link_with_settings. Calling /2/sharing/create_shared_link_with_settings for a folder will not make it a…
  • Using the "quiet" parameter is the right way to suppress the email, so this just sounds like a bug on our side. We'll look into it. I'll let you know when we have an update on this. Thanks!
  • Understood, thanks. I'll pass this along as a feature request for a version of that that would support larger files, but I can't promise if or when that might be implemented of course. 
  • In order for an app to upload files to any particular Dropbox account, it needs authorization from the user of that account. To request authorization from the end-user, the app should implement and use the OAuth app authorization flow. (The Dropbox API v2 .NET SDK offers a DropboxOAuth2Helper class for this. There's also…
  • 1) We don't have documentation or make guarantees as to when exactly during the lifecycle of an API call the locks are taken. It might be the case, for example, that the lock is only taken at the end of the upload, once all of the data has been transmitted. That's not officially guaranteed though, so I can't recommend…