【发布时间】:2014-04-22 18:51:46
【问题描述】:
我使用 Drive API 一年多了。 但有时,我在上传时出现此错误:
我升级到了 1.0.x 版本,但我仍然收到此错误,仅在 xls 文件上。
“调用 POST https://www.googleapis.com/upload/drive/v2/files?uploadType=multipart&convert=true 时出错:(500) 内部错误(代码:4200)”
这是插入的代码,它适用于所有其他文件,例如 xls。
$createdFile = $this->service->files->insert($gdfile, array(
'data' => $data,
'mimeType' => $this->filemimetype,
'uploadType' => 'multipart',
'convert' => true,
));
当我通过 Chrome 将其上传到云端硬盘时,我也遇到了错误。
"Impossible d'afficher ce document pour l'instant" --> "Unable to display this document yet"
Excel 文件在 Excel 中打开良好。
【问题讨论】:
标签: php excel google-drive-api