20261127 #31

Merged
zzh merged 9 commits from test into master 2026-11-27 16:52:30 +08:00
Showing only changes of commit ef3a3abb9f - Show all commits

View File

@ -99,10 +99,8 @@ public static class OmsManagedImageHelper
continue; continue;
} }
return new FileContentResult(bytes, GuessImageMime(candidate)) // 不设 FileDownloadName,避免 Content-Disposition: attachment 影响 CSS/img 内联展示
{ return new FileContentResult(bytes, GuessImageMime(candidate));
FileDownloadName = Path.GetFileName(candidate.Replace('\\', '/'))
};
} }
catch (UnauthorizedAccessException) catch (UnauthorizedAccessException)
{ {