Downloading files - status Complete when connection is lost
-
Here's how to reproduce the issue, at least on macOS:
- open the Server Controller
- start any download with Server.downloadFile()
- as the download progresses, disconnect from the internet
- the Status of all files in the queue will be marked as completed
Unless I'm not getting something right, this is a bug? The download is obviously not completed, it's just that the connection to the server has been lost. If it's not a bug - how to handle such a situation?
Thank you!
-
@tomekslesicki said in Downloading files - status Complete when connection is lost:
The download is obviously not completed,
It's complete but it's not successful ;)
-
@d-healey ok, but the files are automatically marked as completed on the queue. How can I get them to download again?
-
@tomekslesicki Call
downloadFile
again.Also be aware that if you call this method again with the same URL and parameters, it will not add another download, but just replace the callback in the already pending download. If you call this method with a file that already exists, the method assumes that it's a previously stopped download and resumes the download at the position (delete the file before calling the method if you don't want this behaviour).