清明节前导表预提交
This commit is contained in:
@@ -79,6 +79,8 @@ namespace IRaCIS.Core.API.Controllers
|
||||
}
|
||||
|
||||
new FileExtensionContentTypeProvider().Mappings.TryGetValue(Path.GetExtension(filePath), out var contentType);
|
||||
|
||||
|
||||
return File(System.IO.File.OpenRead(filePath), contentType ?? "application/octet-stream", doc.Name);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user