2025 sparked some incredible conversations across our community 👩💻. Discover the highlights and see what’s ahead in 2026.
Forum Discussion
DreamingLearner
1 month agoNew member | Level 2
Shared Link - Download in .NET
I have a shared link to a folder with one 20GB zip file inside of it. I am trying to download that file using the .NET SDK. I tried the following
Using dbx = New DropboxClient(accessToken)
Dim link = New SharedLink(url)
Dim folderRes = dbx.Files.ListFolderAsync("", sharedLink:=link).GetAwaiter().GetResult()
Dim fl = folderRes.Entries(0).AsFile()
dbx.Files.DownloadAsync(fl.PathLower)
End Using
this worked to get the FileMetadata but fl.PathLower is null so I could not get the file this way
Then I tried
Dim res = dbx.Sharing.GetSharedLinkFileAsync(url).GetAwaiter.GetResult()but that didn't work as it's a folder, not a file. I tried getting a link to the file but I only have a preview link so that didn't work either
I am new to the Dropbox API. Can anyone assist me in this?
Following up here as well in case others run into the same question in the future. Even though we’ve already provided this in our direct reply to you.
You can download a file from a shared folder via the API using /2/sharing/get_shared_link_file by:
- Setting the 'url' parameter to the shared folder link, and
- Setting the 'path' parameter to the relative path of the file within that shared folder.
With the shared folder URL in 'url' and the file’s relative path in 'path', the endpoint should return the file content as expected.
1 Reply
- DB-Des1 month ago
Dropbox Community Moderator
Following up here as well in case others run into the same question in the future. Even though we’ve already provided this in our direct reply to you.
You can download a file from a shared folder via the API using /2/sharing/get_shared_link_file by:
- Setting the 'url' parameter to the shared folder link, and
- Setting the 'path' parameter to the relative path of the file within that shared folder.
With the shared folder URL in 'url' and the file’s relative path in 'path', the endpoint should return the file content 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!