From 2aa57c3ce2c99cdd7c914ea178168bf519e73043 Mon Sep 17 00:00:00 2001 From: Vincent Maury Date: Fri, 26 Sep 2025 23:54:19 +0200 Subject: [PATCH] Add mp4 and webm to previews (#35494) So simple to do ... Co-authored-by: Laurent Destailleur --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 37c56cce7ff..fbc12ca76c7 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -13431,7 +13431,7 @@ function dolIsAllowedForPreview($file) } // Check mime types - $mime_preview = array('bmp', 'jpeg', 'png', 'gif', 'tiff', 'pdf', 'plain', 'css', 'webp'); + $mime_preview = array('bmp', 'jpeg', 'png', 'gif', 'tiff', 'pdf', 'plain', 'css', 'webp', 'webm', 'mp4'); if (getDolGlobalString('MAIN_ALLOW_SVG_FILES_AS_IMAGES')) { $mime_preview[] = 'svg+xml'; }