FIX: File server MimeType not updated after image conversion
This commit is contained in:
parent
d1f78f9048
commit
ca7fdaa125
|
@ -253,12 +253,12 @@ namespace Oqtane.Pages
|
||||||
if (download)
|
if (download)
|
||||||
{
|
{
|
||||||
_syncManager.AddSyncEvent(_alias, EntityNames.File, file.FileId, "Download");
|
_syncManager.AddSyncEvent(_alias, EntityNames.File, file.FileId, "Download");
|
||||||
return PhysicalFile(filepath, file.GetMimeType(), downloadName);
|
return PhysicalFile(filepath, MimeUtilities.GetMimeType(downloadName), downloadName);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
HttpContext.Response.Headers.Append(HeaderNames.ETag, etag);
|
HttpContext.Response.Headers.Append(HeaderNames.ETag, etag);
|
||||||
return PhysicalFile(filepath, file.GetMimeType());
|
return PhysicalFile(filepath, MimeUtilities.GetMimeType(downloadName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user