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'; }