I'm updating the file name, I've tried every v2, v3 Google Drive patch request.
$client = new \Google_Client();
$client->setAccessToken($user->oauth_token);
$service = new \Google_Service_Drive($client);
$file = new \Google_Service_Drive_DriveFile();
$fileId = $request->id;
$title = $request->file;
$service->files->update($fileId, $file, array(
'title' => $title,
'mimeType' => 'application/pdf',
'uploadType' => 'multipart'
));
This is my code I don't know what are there main issues. Please correct if I'm doing it in wrong way
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire