How to get the downloaded part when ajax requests a file stream, but if there is an error in the request, you can continue to download it when you request it again to achieve breakpoint continuation.

for example, when I use xhr to request binary stream data, I know that I can use xhr.onprogress () to monitor the download progress, but the progress is not finished. If the network is interrupted or when I execute abort (), how can I get and save the downloaded part, but when I request again, I can start downloading from the interrupted location and finally get the complete data?

Jun.20,2022
Menu