We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
Manjit S.
10 years agoNew member | Level 1
A task was canceled when downloading large files.
In my .net(C#) application I am trying to download the files from the dropbox using dropbox client and its working fine with the small files like 10mb but when i try to download larger files then its giving me the "A task was canceled." and i think this exception is related to timeout.How can i solve this issue beacuse i have to download files upto 5's to 10 gb? I am using following code
DropboxClient dbx = new DropboxClient(user.DropboxAccessToken);
using (var response = await dbx.Files.DownloadAsync(@"" + "/" + file))
{
var ufile =await response.GetContentAsStreamAsync();
}
1 Reply
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
Hi Manjit, there are a couple of threads with one of our developers here that should help with this:
https://www.dropboxforum.com/hc/en-us/community/posts/204820279-Upload-and-download-large-files
https://www.dropboxforum.com/hc/en-us/community/posts/205788125-CSharp-SDK-await-dbx-Files-UploadAsync-object-gets-disposed-before-upload
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,037 PostsLatest Activity: 5 hours ago
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 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!