We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
SauravAnand
9 years agoExplorer | Level 4
Get source URL of Photo/Video - Dropbox API v2 - C#
Hi, I need to get source URL's of each photos or videos on Dropbox account. Earlier with v1 is i was gettting file path like below: var api = new DropboxApi(dropbox_appkey, dropbox_appsecret...
- 9 years ago
To get the sub-files and folders, you'll need to set the recursive parameter. So, for example, instead of:
var list = await client.Files.ListFolderAsync(path);
you would use:
var list = await client.Files.ListFolderAsync(path, recursive:true);
The "path" you then pass in to DownloadAsync should be the "PathLower" you retrieved from the FileMetadata. (Alternatively, the "Id" would also work.) There's an example of getting the file data from the response of DownloadAsync here.
Greg-DB
Dropbox Community Moderator
9 years agoTo get the sub-files and folders, you'll need to set the recursive parameter. So, for example, instead of:
var list = await client.Files.ListFolderAsync(path);
you would use:
var list = await client.Files.ListFolderAsync(path, recursive:true);
The "path" you then pass in to DownloadAsync should be the "PathLower" you retrieved from the FileMetadata. (Alternatively, the "Id" would also work.) There's an example of getting the file data from the response of DownloadAsync here.
SauravAnand
9 years agoExplorer | Level 4
Hi Greg,
Thanks for your prompt help. I have tried and it worked as expected.
Thanks for your prompt help. I have tried and it worked as expected.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!