aboutsummaryrefslogtreecommitdiff
path: root/pkg/fileop/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/fileop/file.go')
-rw-r--r--pkg/fileop/file.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/fileop/file.go b/pkg/fileop/file.go
index 07c08e5..10e2202 100644
--- a/pkg/fileop/file.go
+++ b/pkg/fileop/file.go
@@ -12,6 +12,9 @@ func GetHashFromPath(path string) string {
}
func IsMimeTypeSupported(mimetype string) bool {
- return strings.HasPrefix(mimetype, "video") &&
+ if mimetype == "image/svg+xml" {
+ return false
+ }
+ return strings.HasPrefix(mimetype, "video") ||
strings.HasPrefix(mimetype, "image")
}