Skip to content

Commit

Permalink
Add helpful comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Jun 18, 2024
1 parent 5484c62 commit e07c24f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Jobs/AssembleChunkedFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e07c24f

Please sign in to comment.