In my production have folder to store the log file. I want to make the html page to download 'log file' (large .txt file, around 1.5 gb/file) from server to client computer using Django (python) views. What is the best solution to do that (no lose data in downloaded file, good performance)
now i use this code but the size of downloaded file is less than the original file in the server :C
with open(file_path, 'rb') as fh:
response = HttpResponse(fh.read(), content_type="application/force-download")
response['Content-Disposition'] = 'inline; filename=' + os.path.basename(file_path)
return response