From 69d71c2a495d9cce1984ba2ffddf1d98622b01fe Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Tue, 18 Jul 2023 21:41:53 +0200 Subject: feat: Move to user path media Now media also base on user folder to fetch its media. --- pkg/fileop/file.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/fileop') diff --git a/pkg/fileop/file.go b/pkg/fileop/file.go index 10e2202..8999f07 100644 --- a/pkg/fileop/file.go +++ b/pkg/fileop/file.go @@ -12,7 +12,8 @@ func GetHashFromPath(path string) string { } func IsMimeTypeSupported(mimetype string) bool { - if mimetype == "image/svg+xml" { + if mimetype == "image/svg+xml" || + mimetype == "video/mp2t" { return false } return strings.HasPrefix(mimetype, "video") || -- cgit v1.2.3