我的代码:
public FileResult Download(string fileName) {
string fullPath = Path.Combine(Server.MapPath("~/"), fileName);
byte[] fileBytes = System.IO.File.ReadAllBytes(fullPath);
return File(fileBytes,System.Net.Mime.MediaTypeNames.Application.Octet, fileName);
}