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