feat(file_decoder): expand MIME type detection to include additional file extensions

This commit is contained in:
CaIon
2025-06-17 22:20:19 +08:00
parent 290c763901
commit edd9049100

View File

@@ -86,7 +86,7 @@ func GetMimeTypeByExtension(ext string) string {
ext = strings.ToLower(ext)
switch ext {
// Text files
case "txt":
case "txt", "md", "markdown", "csv", "json", "xml", "html", "htm":
return "text/plain"
// Image files