From 9babdf307957a8c5ba1b57bc2328f4d6d2285adc Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Thu, 19 Dec 2024 15:25:33 +0100 Subject: [PATCH] Increase memory limit for file uploads --- lib/Controller/AttachmentsController.php | 2 ++ lib/Service/FileService.php | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/Controller/AttachmentsController.php b/lib/Controller/AttachmentsController.php index ffb8160a..324a09cf 100644 --- a/lib/Controller/AttachmentsController.php +++ b/lib/Controller/AttachmentsController.php @@ -2,6 +2,8 @@ namespace OCA\OpenCatalogi\Controller; +ini_set('memory_limit', '2048M'); + use Exception; use GuzzleHttp\Exception\GuzzleException; use OCA\OpenCatalogi\Db\AttachmentMapper; diff --git a/lib/Service/FileService.php b/lib/Service/FileService.php index 70ec13e2..a35bcd11 100644 --- a/lib/Service/FileService.php +++ b/lib/Service/FileService.php @@ -1,6 +1,7 @@