diff --git a/src/Controller/Backend/Async/FileListingController.php b/src/Controller/Backend/Async/FileListingController.php index 836e8d566..1fe2a748c 100644 --- a/src/Controller/Backend/Async/FileListingController.php +++ b/src/Controller/Backend/Async/FileListingController.php @@ -48,7 +48,7 @@ public function index(): JsonResponse private function getFilesIndex(string $path, string $type): Collection { if ($type === 'images') { - $glob = '*.{jpg,png,gif,jpeg,avif,webp}'; + $glob = sprintf('*.{%s}', $this->config->getMediaTypes()->implode(',')); } else { $glob = null; }