I use for more than one year the Drive API. But sometime, I have this error when uploading :
I made the upgrade to the 1.0.x version, but I still got this error, only on xls file.
"Error calling POST https://www.googleapis.com/upload/drive/v2/files?uploadType=multipart&convert=true: (500) Internal Error (Code : 4200)"
Here is the code for the insert, it work for every others files, exept xls.
$createdFile = $this->service->files->insert($gdfile, array(
'data' => $data,
'mimeType' => $this->filemimetype,
'uploadType' => 'multipart',
'convert' => true,
));
I have an error when I upload it on Drive via Chrome as well.
"Impossible d'afficher ce document pour l'instant" --> "Unable to display this document yet"
The Excel file open well in Excel.