为什么这会将“w,w,w”写入响应而不是打开保存文件对话框?
[HttpPost]
public ActionResult Export(int id)
{
var contentType = "text/csv";
var content = "w,w,w";
var bytes = Encoding.UTF8.GetBytes(content);
var result = new FileContentResult(bytes, contentType)
{
FileDownloadName = "www.csv"
};
return result;
}