diff options
Diffstat (limited to 'back-end')
-rw-r--r-- | back-end/src/Content.Publishing.Blog.Admin.csproj | 6 | ||||
-rw-r--r-- | back-end/src/Model/ContentManager.cs | 9 |
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); |