Try to improve AssembleChunkedFile
mzur opened this issue · 0 comments
mzur commented
The AssembleChunkedFile job downloads each chunk and appends it to a temporary local file:
user-storage/src/Jobs/AssembleChunkedFile.php
Lines 61 to 74 in b1d3b79
Instead, it may be possible to append to the final storage disk file directly (with readStream()
and writeStream()
). Find out if this works and if yes, update the job.
Background: There was a case with a huge file where the locally available storage space was not sufficient. If everything is done directly in the storage disk, this would no longer be a problem.