📅  最后修改于: 2022-03-11 14:49:23.089000             🧑  作者: Mango
public FileResult GetFile(string fileid)
{
byte[] bytes = File.ReadAllBytes("C:\Temp.txt");
return File(bytes, System.Net.Mime.MediaTypeNames.Application.Octet, "Temp.txt");
}