From ca7fdaa125ac605e0d711869b6b0702770f66a50 Mon Sep 17 00:00:00 2001 From: David Montesinos <90258222+mdmontesinos@users.noreply.github.com> Date: Mon, 20 Jan 2025 12:17:22 +0100 Subject: [PATCH] FIX: File server MimeType not updated after image conversion --- Oqtane.Server/Pages/Files.cshtml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Oqtane.Server/Pages/Files.cshtml.cs b/Oqtane.Server/Pages/Files.cshtml.cs index 463534fc..8af671ae 100644 --- a/Oqtane.Server/Pages/Files.cshtml.cs +++ b/Oqtane.Server/Pages/Files.cshtml.cs @@ -253,12 +253,12 @@ namespace Oqtane.Pages if (download) { _syncManager.AddSyncEvent(_alias, EntityNames.File, file.FileId, "Download"); - return PhysicalFile(filepath, file.GetMimeType(), downloadName); + return PhysicalFile(filepath, MimeUtilities.GetMimeType(downloadName), downloadName); } else { HttpContext.Response.Headers.Append(HeaderNames.ETag, etag); - return PhysicalFile(filepath, file.GetMimeType()); + return PhysicalFile(filepath, MimeUtilities.GetMimeType(downloadName)); } }