/home/techb158/immovalet.com/vendor/botble/platform/media/src/Chunks
NameSizeModeActions
Exceptions/-0755rm
Handler/-0755rm
Receiver/-0755rm
Save/-0755rm
Storage/-0755rm
ChunkFile.php18060644editdlrm
FileMerger.php13110644editdlrm
Edit: /home/techb158/immovalet.com/vendor/botble/platform/media/src/Chunks/FileMerger.php (1311B)
destinationFile = @fopen($targetFile, 'ab')) { throw new ChunkSaveException('Failed to open output stream.', 102); } } /** * Appends given file. * * @param string $sourceFilePath * @return $this * @throws ChunkSaveException */ public function appendFile($sourceFilePath) { // Open the new uploaded chunk if (!$in = @fopen($sourceFilePath, 'rb')) { @fclose($this->destinationFile); throw new ChunkSaveException('Failed to open input stream', 101); } // Read and write in buffs while ($buff = fread($in, 4096)) { fwrite($this->destinationFile, $buff); } @fclose($in); return $this; } /** * Closes the connection to the file. */ public function close() { @fclose($this->destinationFile); } }