context.Response.Headers.Add("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(Path.GetFileName(fileRecord.Name), System.Text.Encoding.UTF8));
fileRecord.Name:文件下载时指定下载的文件名称
posted on 2021-06-28 16:56  ccc#  阅读(331)  评论(0编辑  收藏  举报