feat(file_decoder): expand MIME type detection to include additional file extensions
This commit is contained in:
@@ -86,7 +86,7 @@ func GetMimeTypeByExtension(ext string) string {
|
|||||||
ext = strings.ToLower(ext)
|
ext = strings.ToLower(ext)
|
||||||
switch ext {
|
switch ext {
|
||||||
// Text files
|
// Text files
|
||||||
case "txt":
|
case "txt", "md", "markdown", "csv", "json", "xml", "html", "htm":
|
||||||
return "text/plain"
|
return "text/plain"
|
||||||
|
|
||||||
// Image files
|
// Image files
|
||||||
|
|||||||
Reference in New Issue
Block a user