Forum Discussion

RajanKhorasiya's avatar
RajanKhorasiya
Explorer | Level 3
6 years ago

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);
}

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 8 hours ago
350 Following

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!