From 2c773ac1a4234151dc845ab2da637218e7a53256 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Wed, 29 May 2019 16:21:25 +0200 Subject: [PATCH] Include SVG format --- bl-kernel/admin/themes/booty/html/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bl-kernel/admin/themes/booty/html/media.php b/bl-kernel/admin/themes/booty/html/media.php index f40dcd63..665902bf 100644 --- a/bl-kernel/admin/themes/booty/html/media.php +++ b/bl-kernel/admin/themes/booty/html/media.php @@ -176,7 +176,7 @@ function uploadImages() { var images = $("#jsimages")[0].files; for (var i=0; i < images.length; i++) { // Check file type/extension - const validImageTypes = ['image/gif', 'image/jpeg', 'image/png']; + const validImageTypes = ['image/gif', 'image/jpeg', 'image/png', 'image/svg+xml']; if (!validImageTypes.includes(images[i].type)) { showMediaAlert("g('File type is not supported. Allowed types:').' '.implode(', ',ALLOWED_IMG_EXTENSION) ?>"); return false;