.net core razor read IFormFile content code example
Example: .net Core Get File Request
public FileResult GetFile(string fileid)
{
byte[] bytes = File.ReadAllBytes("C:\Temp.txt");
return File(bytes, System.Net.Mime.MediaTypeNames.Application.Octet, "Temp.txt");
}