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)); } }