From 4a23b6bac1da77b5e3fcd597354a4ff52af526e2 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 8 Aug 2017 16:10:27 -0400 Subject: [PATCH] types: override webm as a video Signed-off-by: Vincent Batts --- types/types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/types.go b/types/types.go index 3318c0d..0eefe8c 100644 --- a/types/types.go +++ b/types/types.go @@ -33,6 +33,9 @@ func (f *File) IsImage() bool { } func (f *File) IsVideo() bool { + if strings.HasSuffix(f.Filename, ".webm") { + return true + } return strings.HasPrefix(f.ContentType(), "video") }