FileDatabase Improvements

- small bugfixes
 - Startup configuration to load an arbitrary file database for the API
This commit is contained in:
daniel-c-harvey
2025-09-04 14:19:57 -04:00
parent 27522c1e1c
commit c4c4662c67
5 changed files with 52 additions and 6 deletions
@@ -156,8 +156,15 @@ public static class MimeTypeExtensions
{ ".bmp", "image/bmp" }
};
private static readonly Dictionary<string, string> Extensions =
MimeTypes.ToDictionary(kvp => kvp.Value, kvp => kvp.Key);
private static readonly Dictionary<string, string> Extensions = new()
{
{ "image/jpeg", ".jpg" },
{ "image/png", ".png" },
{ "image/gif", ".gif" },
{ "image/webp", ".webp" },
{ "image/svg+xml", ".svg" },
{ "image/bmp", ".bmp" }
};
public static string GetMimeType(string extension)
{