One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
RajanKhorasiya
6 years agoExplorer | Level 3
I want to download large file (more than 50 mb) using .net sdk
How to set timeout for downloading large files from dropbox using .net sdk i am using below code
try
{
using (var response = await client.Files.DownloadAsync(file.FolderName + file.FileName))
{
using (var fileStream = File.Create(destinationpath + file.FileName))
{
var destPath = sourcepath + "/Recevied" + file.FolderName + file.FileName;
entries.Add(new RelocationPath(file.FolderName + file.FileName, destPath));
(await response.GetContentAsStreamAsync()).CopyTo(fileStream);
}
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
- Greg-DB
Dropbox Staff
You can find an example of setting a timeout with the .NET SDK here:
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 8 hours ago
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 or Facebook.
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!