Fix: merging chunks after upload

This commit is contained in:
Milos Stojanovic
2019-08-01 10:05:42 +02:00
parent a2517c6d9b
commit 49dc0b89a1
4 changed files with 27 additions and 4 deletions

View File

@@ -99,7 +99,7 @@ class UploadController
if ($chunks_size >= $total_size) {
for ($i = 1; $i <= $total_chunks; ++$i) {
$part = $this->tmpfs->readStream($prefix.$file_name.'.part'.$i);
$this->tmpfs->write($file_name, $part['stream']);
$this->tmpfs->write($file_name, $part['stream'], true);
}
$final = $this->tmpfs->readStream($file_name);