diff --git a/file_display.go b/file_display.go index 535f09e..99d5421 100644 --- a/file_display.go +++ b/file_display.go @@ -17,6 +17,8 @@ var extensions = map[string]string{ ".png": "image", ".jpg": "image", ".jpeg": "image", ".webp": "image", + ".mp3": "audio", ".aac": "audio", ".wav": "audio", ".flac": "audio", ".ogg": "audio", + ".sh": "text", ".bash": "text", ".zsh": "text", ".bat": "text", ".cmd": "text", ".ps1": "text", ".ini": "text", ".cfg": "text", ".conf": "text", diff --git a/templates/files.html b/templates/files.html index abbf7b5..0ef66a0 100644 --- a/templates/files.html +++ b/templates/files.html @@ -213,12 +213,14 @@ Your browser does not support the video tag. - {{else}} -
- Couldn't detect file from extension, visit - this link to see/download your file. -
- {{end}} + {{else if eq .Type "audio"}} +