context.Response.Headers.Add("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(Path.GetFileName(fileRecord.Name), System.Text.Encoding.UTF8));
fileRecord.Name:文件下载时指定下载的文件名称
2024-01-17 22:44:10
context.Response.Headers.Add("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(Path.GetFileName(fileRecord.Name), System.Text.Encoding.UTF8));
fileRecord.Name:文件下载时指定下载的文件名称