解决如下:
进行url编码:Server.UrlPathEncode(file.AttachmentName)
return File(file.TempWorkPath, CommonTools.GetContentType(Path.GetExtension(file.TempWorkPath).Replace(".", "")), Server.UrlPathEncode(file.AttachmentName));
解决如下:
进行url编码:Server.UrlPathEncode(file.AttachmentName)
return File(file.TempWorkPath, CommonTools.GetContentType(Path.GetExtension(file.TempWorkPath).Replace(".", "")), Server.UrlPathEncode(file.AttachmentName));
转载于:https://www.cnblogs.com/qiuguochao/p/6708091.html