Microsoft Graph创建上传会话到大文件

the code is on bottom works to less 4MB files. I would like to write a same code, but I would like to use the createUploadSession method. What and how should I rewrite that the method is running without request error. I read the docs, but I didn't make it.

Thanks!

/* WORKING < 4MB files
        $getEventsUrl = "/me/drive/root:/'valid_folder'/".$file->getClientOriginalName().":/content";
        $filesup = $graph->createRequest('PUT', $getEventsUrl)
        ->upload($file->getRealPath());
    */