You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you can achieve that by using range in http header
by pausing download, you are closing the request, and resuming means opening a new get request but with range header
so what you should do for resuming is:
get the file size File(path).statsSync().size
create a new client with the header
( headers.addAll({"range": "byte=fileSize-});
read more about range header for more control
In situations where internet connection is lost, or when a user would like to pause downloading and resume downloading later. How do you handle that?
The text was updated successfully, but these errors were encountered: