From 5633722e17fef7dcaa038fd7234d34735a7696a6 Mon Sep 17 00:00:00 2001 From: Mathieu De Keyzer Date: Thu, 19 Dec 2024 09:52:59 +0100 Subject: [PATCH] fix: bigger chunks --- EMS/helpers/src/File/TempFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EMS/helpers/src/File/TempFile.php b/EMS/helpers/src/File/TempFile.php index 7e89a47d2..d84008b72 100644 --- a/EMS/helpers/src/File/TempFile.php +++ b/EMS/helpers/src/File/TempFile.php @@ -52,7 +52,7 @@ public function loadFromStream(StreamInterface $stream): self } while (!$stream->eof()) { - if (false === \fwrite($handle, $stream->read(8192))) { + if (false === \fwrite($handle, $stream->read(File::DEFAULT_CHUNK_SIZE))) { throw new \RuntimeException(\sprintf('Can\'t write in temporary file %s', $this->path)); } }