Add mp4 and webm to previews (#35494)

So simple to do ...

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Vincent Maury
2025-09-26 23:54:19 +02:00
committed by GitHub
parent 01b917c0a1
commit 2aa57c3ce2

View File

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