0
from django.http import FileResponse
def send_file():
    #some processes
    response = FileResponse(open(file_name, 'rb'),as_attachment=True)
    return response

The connection sometimes lost. I want to resume downloading the file. How can I do that? Many thanks.

teddy171
  • 11
  • 5

1 Answers1

0

You need a iteration for control the download. Here is a example Download large file in python with requests

LordPaella
  • 143
  • 9