Menu
Sites
Language
Resuming a failed download

We are building a Tizen web app but this should be relevant to native apps or .NET apps as well.

 

We download files using:

 

var downloadRequest = new tizen.DownloadRequest(url, path);|
var downloadId = tizen.download.start(downloadRequest, downloadListener);|

 

Due to poor internet connectivity at some sites the downloads can fail to complete. If you run the same code on the same download file it does not resume the download but starts at 0. On a poor internet connection the restarts could consume huge amounts of data due to the large size of the files. On a mobile capped connection this can cause large bills and/or blocked connections due to hitting the cap.

 

There is a .resume function but it’s purpose is to resume user paused downloads. It does not function as a resumable download function.

 

My question is, how do I resume a failed download from the last position?

Edited on 30 08, 2024

Responses

2 Replies
roy burns

thank you

cawifop cawifop
오피스타 또는 OPSTAR 홈페이지에서는 휴식이 필요하고 테라피를 찾는 직장인 , 군인, 사회인을 위해 최고의 휴양지를 쉽게 찾을 수 있게 서비스 하고 있습니다. 오피 외 다양한 종류에 서비스를 제공하는 1등 오피사이트 입니다    <a href="https://www.오피스타.online">오피스타</a>