20261127 #31
@ -99,10 +99,8 @@ public static class OmsManagedImageHelper
|
||||
continue;
|
||||
}
|
||||
|
||||
return new FileContentResult(bytes, GuessImageMime(candidate))
|
||||
{
|
||||
FileDownloadName = Path.GetFileName(candidate.Replace('\\', '/'))
|
||||
};
|
||||
// 不设 FileDownloadName,避免 Content-Disposition: attachment 影响 CSS/img 内联展示
|
||||
return new FileContentResult(bytes, GuessImageMime(candidate));
|
||||
}
|
||||
catch (UnauthorizedAccessException)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user