【发布时间】:2015-04-14 10:20:15
【问题描述】:
我正在使用 Google Drive API 上传文件。当我上传 Doc 或 Docx 文件时它正在工作。但是,我无法在 Google Drive 界面中打开上传的 Docx 文件。
这是我的电话
$result = $service->files->insert(
$file,
array(
'data' => $data,
'mimeType' => 'application/octet-stream',
'uploadType' => 'multipart',
'convert' => true
)
);
无论我设置转换为真还是假。我发现 docx 文件无法转换。我该如何解决?
【问题讨论】:
标签: google-drive-api docx