protected function handleChunkFile($file)
    {
        // delete the old chunk
        if ($this->handler()->isFirstChunk() && $this->chunkDisk()->exists($file)) {
            $this->chunkDisk()->delete($file);
        }

        // Append the data to the file
        (new FileMerger($this->getChunkFullFilePath()))
            ->appendFile($this->file->getPathname())
            ->close();

        return $this;
    }
protected function handleChunkFile($file)
    {
        // delete the old chunk
        if ($this->handler()->isFirstChunk() && $this->chunkDisk()->exists($file)) {
            $this->chunkDisk()->delete($file);
        }

        // Append the data to the file
        (new FileMerger($this->getChunkFullFilePath()))
            ->appendFile($this->file->getPathname())
            ->close();

        return $this;
    }
protected function handleChunkFile ( $ file ) { // delete the old chunk if ( $ this -> handler ( ) -> isFirstChunk ( ) && $ this -> chunkDisk ( ) -> exists ( $ file ) ) { $ this -> chunkDisk ( ) -> delete ( $ file ) ; } // Append the data to the file ( new FileMerger ( $ this -> getChunkFullFilePath ( ) ) ) -> appendFile ( $ this -> file -> getPathname ( ) ) -> close ( ) ; return $ this ; }
Appends the current uploaded file to chunk file.

@param string $file Relative path to chunk

@return $this

@throws ChunkSaveException
Appends the current uploaded file to chunk file .