diff --git a/src/Widgets/UploadOnSteroids.php b/src/Widgets/UploadOnSteroids.php index 780b83a..df86fe4 100644 --- a/src/Widgets/UploadOnSteroids.php +++ b/src/Widgets/UploadOnSteroids.php @@ -553,7 +553,7 @@ private function addFiles($sortBy): void $container = System::getContainer(); $projectDir = $container->getParameter('kernel.project_dir'); assert(\is_string($projectDir)); - $imageFactory = $container->get('contao.image.image_factory'); + $imageFactory = $container->get('contao.image.factory'); assert($imageFactory instanceof ImageFactory); foreach ($statement->fetchAllAssociative() as $file) { if (null === ($objFile = FilesModel::findByUuid($file['uuid']))) {