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.
The AssembleChunkedFile job downloads each chunk and appends it to a temporary local file:
https://github.com/biigle/user-storage/blob/b1d3b7916f579d610813f6c0fea0e90785142587/src/Jobs/AssembleChunkedFile.php#L61-L74
Instead, it may be possible to append to the final storage disk file directly (with
readStream()
andwriteStream()
). 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.