Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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);
}
You can find an example of setting a timeout with the .NET SDK here:
Hi there!
If you need more help you can view your support options (expected response time for a 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!