From edd9049100d32aab552e6ce17f11290dd5e2b736 Mon Sep 17 00:00:00 2001 From: CaIon <1808837298@qq.com> Date: Tue, 17 Jun 2025 22:20:19 +0800 Subject: [PATCH] feat(file_decoder): expand MIME type detection to include additional file extensions --- service/file_decoder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/file_decoder.go b/service/file_decoder.go index aa1bbdae..ac6c63d6 100644 --- a/service/file_decoder.go +++ b/service/file_decoder.go @@ -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