From 15a0ed58d78ba24c18de9d2b447738f649d442e0 Mon Sep 17 00:00:00 2001 From: David Steeb Date: Thu, 6 Feb 2025 17:22:38 +0100 Subject: [PATCH 1/2] =?UTF-8?q?[TASK]=20Add=20allowed=20file=20types=20to?= =?UTF-8?q?=20=E2=80=9Cimages=E2=80=9D=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The field is clearly designated for image formats, so we should by default allow all image types (and only those file types). --- Configuration/TCA/tx_listelements_item.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Configuration/TCA/tx_listelements_item.php b/Configuration/TCA/tx_listelements_item.php index b5d3457..725a16e 100644 --- a/Configuration/TCA/tx_listelements_item.php +++ b/Configuration/TCA/tx_listelements_item.php @@ -163,6 +163,7 @@ 'appearance' => [ 'createNewRelationLinkTitle' => 'LLL:EXT:listelements/Resources/Private/Language/locallang_db.xlf:tx_listelements_item.images.addFileReference', ], + 'allowed' => 'common-image-types' ], ], 'assets' => [ From a1d9c010a2421b7279792dbf6bfc496c4d30c51c Mon Sep 17 00:00:00 2001 From: David Steeb Date: Thu, 6 Feb 2025 17:23:58 +0100 Subject: [PATCH 2/2] [TASK ] Add trailing comma --- Configuration/TCA/tx_listelements_item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configuration/TCA/tx_listelements_item.php b/Configuration/TCA/tx_listelements_item.php index 725a16e..bfaee00 100644 --- a/Configuration/TCA/tx_listelements_item.php +++ b/Configuration/TCA/tx_listelements_item.php @@ -163,7 +163,7 @@ 'appearance' => [ 'createNewRelationLinkTitle' => 'LLL:EXT:listelements/Resources/Private/Language/locallang_db.xlf:tx_listelements_item.images.addFileReference', ], - 'allowed' => 'common-image-types' + 'allowed' => 'common-image-types', ], ], 'assets' => [