Create folder and insert file in Google Drive
- by web_student
I am trying to create a new folder in Drive and upload one (or more) files to that created folder. I use the code below, but the result is that both the folder and the file are placed in the root of my Drive.
$client->setAccessToken($_SESSION['accessToken']);
//create folder
$folder_mime = "application/vnd.google-apps.folder";
$folder_name =…