This method allows you to download files larger than 10 GB; is there a server side way to check the progress? Or is there a way to determine how many transfers to clients are active?
public IActionResult GetFile(string fileName)
{
try
{
if (System.IO.File.Exists(fileName))
{
var stream = new FileStream(fileName, FileMode.Open);
return new FileStreamResult(stream, "application/octet-stream");
}
Console.WriteLine(retMessage);
return NotFound(retMessage);
}
catch (Exception ex)
{
return StatusCode(StatusCodes.Status500InternalServerError);
}
}