From a4c01bd7bc3e97904dba1bf27d2bff2d6606ce6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20D=C3=ADaz?= <62429591+Saaweel@users.noreply.github.com> Date: Tue, 10 Sep 2024 13:33:47 +0200 Subject: [PATCH] Update UploadService.php --- src/Upload/UploadService.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Upload/UploadService.php b/src/Upload/UploadService.php index a049f1a..6b8564f 100644 --- a/src/Upload/UploadService.php +++ b/src/Upload/UploadService.php @@ -15,7 +15,11 @@ class UploadService public function handleUpload($form, $file_name, $page_id, $parent_id) { global $DIC; - $upload = $DIC->upload(); + $upload = new \ILIAS\FileUpload\FileUploadImpl( + $DIC['upload.processor-manager'], + $DIC['filesystem'], + $DIC['http'] + ); if (!$upload->hasUploads() || $upload->hasBeenProcessed()) { $form->setValuesByPost(); @@ -83,4 +87,4 @@ public static function evaluateFileName($file_name, $page_id, $parent_id, $inc = return self::evaluateFileName($legacyFileName, $page_id, $parent_id, $inc); } -} \ No newline at end of file +}