dropbox / dropbox/dropbox-sdk-dotnet
Is it possible to resume a download that fails due to a network failure or similar
- Dominant language
- C#
- Stars
- 347
- Forks
- 439
- Avg merge
- 4m
- Merged PRs (30d)
- 9
Description
I've had success with resuming uploads using (as was suggested in a previous question that I asked):
UploadSessionStartAsync
UploadSessionAppendV2Async
UploadSessionFinishAsync
Is the means to resume a download similar? or even possible?
I can download using code such as:
```
using (DropboxClient dbx = GetAccessToken([myaccesstoken]))
{
using (var response = await dbx.Files.DownloadAsync("/" + file))
{
using (var fileStream = File.Create(localFilePath))
{
form1.Debuginfo += $"3\r\n";
(await response.GetContentAsStreamAsync()).CopyTo(fileStream);
}
}
}
```
I then copy it to a file and that works okay.
Could you offer any pointers on how I might resume such a download in the event of a newtwork failure?
I'd expect to have to get a session ID. That leads me to believe that I'd need to create some sort of session for it.
Any direction is greatly appreciated
Steve
Contributor guide
Assessment
This issue has not been assessed yet.