From a84f983b440d15b0b38cb40f4d8183e53da4dda1 Mon Sep 17 00:00:00 2001 From: Christoph Schweppe Date: Thu, 4 Jun 2020 12:29:30 +0200 Subject: [PATCH] Update manager.blade.php --- resources/views/media/manager.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/media/manager.blade.php b/resources/views/media/manager.blade.php index 3c8f6deed0..33fe2cba63 100644 --- a/resources/views/media/manager.blade.php +++ b/resources/views/media/manager.blade.php @@ -540,7 +540,7 @@ fileIs: function(file, type) { if (typeof file === 'string') { if (type == 'image') { - return this.endsWithAny(['jpg', 'jpeg', 'png', 'bmp'], file); + return this.endsWithAny(['jpg', 'jpeg', 'png', 'bmp'], file.toLowerCase()); } //Todo: add other types } else { @@ -609,9 +609,9 @@ } else { content.push(file.relative_path); this.hidden_element.value = JSON.stringify(content); - this.$forceUpdate(); } } + this.$forceUpdate(); } }, removeFileFromInput: function(path) {