From fe13cc073a5bcd409b96a5539d6fd308605f9ac2 Mon Sep 17 00:00:00 2001 From: vnugent Date: Wed, 8 Nov 2023 13:58:15 -0500 Subject: big package updates & update some chunk splitting --- back-end/src/Content.Publishing.Blog.Admin.csproj | 6 +++--- back-end/src/Model/ContentManager.cs | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'back-end') diff --git a/back-end/src/Content.Publishing.Blog.Admin.csproj b/back-end/src/Content.Publishing.Blog.Admin.csproj index c9d19ea..97a575f 100644 --- a/back-end/src/Content.Publishing.Blog.Admin.csproj +++ b/back-end/src/Content.Publishing.Blog.Admin.csproj @@ -33,10 +33,10 @@ - + - - + + diff --git a/back-end/src/Model/ContentManager.cs b/back-end/src/Model/ContentManager.cs index dc289fa..4fc2854 100644 --- a/back-end/src/Model/ContentManager.cs +++ b/back-end/src/Model/ContentManager.cs @@ -289,6 +289,15 @@ namespace Content.Publishing.Blog.Admin.Model private static string GetFileNameFromTypeOrExtension(string fileId, ContentType type, string? fileName) { + /* + * Allow file extension pass through for servers that require it. Content type + * translation is sometimes inaccurate due to the chain of events that occur. + * It seems that often the browsers have a very outdated MIME type list and + * privacy browsers may choose to obfuscate the exacte type for privacy reasons. + * + * So passing the extension through to the outside world allows the web server to + * choose. + */ if(Path.HasExtension(fileName)) { string extension = Path.GetExtension(fileName); -- cgit