mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Add mp4 and webm to previews (#35494)
So simple to do ... Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user