diff --git a/lib/file.go b/lib/file.go index 8501fb6d..9b7fc899 100644 --- a/lib/file.go +++ b/lib/file.go @@ -233,7 +233,7 @@ func (i *File) GetFileType(checkContent bool) error { mimetype = http.DetectContentType(buffer[:n]) } - if strings.HasPrefix(mimetype, "video") { + if strings.HasPrefix(mimetype, "video") || strings.HasSuffix(mimetype, "octet-stream") { i.Type = "video" return nil }