From e07c24f12a298a934ba198bef428aaf5d872a44f Mon Sep 17 00:00:00 2001 From: Martin Zurowietz Date: Tue, 18 Jun 2024 10:12:32 +0200 Subject: [PATCH] Add helpful comment --- src/Jobs/AssembleChunkedFile.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Jobs/AssembleChunkedFile.php b/src/Jobs/AssembleChunkedFile.php index 0d9c89e..23ffd3c 100644 --- a/src/Jobs/AssembleChunkedFile.php +++ b/src/Jobs/AssembleChunkedFile.php @@ -63,6 +63,9 @@ public function handle() $disk = Storage::disk(config('user_storage.pending_disk')); $path = $this->file->request->getPendingPath($this->file->path); + // Make sure not to configure the S3 mup_threshold to be larger than the chunk + // size! The upload needs to use the MultipartUploader because only it can handle + // the unseekable PumpStream correctly. $success = $disk->writeStream($path, $resource); if (!$success) {