Commit 5506e4fe by CaIon

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

parent 16bffe05
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment