src/UploadedFile.php
public function moveToDirectory($directory)
    {
        $targetPath = rtrim($directory, '/') . '/' . $this->getClientFilename();

        return $this->moveTo($targetPath);
    }
public function moveToDirectory($directory)
    {
        $targetPath = rtrim($directory, '/') . '/' . $this->getClientFilename();

        return $this->moveTo($targetPath);
    }
public function moveToDirectory ( $ directory ) { $ targetPath = rtrim ( $ directory , '/' ) . '/' . $ this -> getClientFilename ( ) ; return $ this -> moveTo ( $ targetPath ) ; }
Move file from directory, keeping the cliente file name

@param string $directory
Move file from directory keeping the cliente file name