aboutsummaryrefslogtreecommitdiff
path: root/back-end
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-11-08 13:58:15 -0500
committerLibravatar vnugent <public@vaughnnugent.com>2023-11-08 13:58:15 -0500
commitfe13cc073a5bcd409b96a5539d6fd308605f9ac2 (patch)
tree10308288693d75c9eac7ff2edb45d9f16264fbaf /back-end
parent8ae86c70aa832ce2fd1f3abab5b017e3ac2fa83e (diff)
big package updates & update some chunk splitting
Diffstat (limited to 'back-end')
-rw-r--r--back-end/src/Content.Publishing.Blog.Admin.csproj6
-rw-r--r--back-end/src/Model/ContentManager.cs9
2 files changed, 12 insertions, 3 deletions
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 @@
</ItemGroup>
<ItemGroup>
- <PackageReference Include="FluentFTP" Version="48.0.1" />
+ <PackageReference Include="FluentFTP" Version="48.0.3" />
<PackageReference Include="Minio" Version="6.0.0" />
- <PackageReference Include="VNLib.Plugins.Extensions.Loading" Version="0.1.0-ci0037" />
- <PackageReference Include="VNLib.Plugins.Extensions.Validation" Version="0.1.0-ci0037" />
+ <PackageReference Include="VNLib.Plugins.Extensions.Loading" Version="0.1.0-ci0042" />
+ <PackageReference Include="VNLib.Plugins.Extensions.Validation" Version="0.1.0-ci0042" />
</ItemGroup>
<ItemGroup>
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);