Google的File Insert v2 API无法识别MIME TYPE application / vnd.google-apps.document [英] Google's File Insert v2 API fails to recognise MIME TYPE application/vnd.google-apps.document
问题描述
今天早上,我尝试使用Google API File Insert,其中我提供了MIME TYPE作为application / vnd.google-apps.document。
我从Google API获得以下响应
HttpError: < HttpError 400请求时https://www.googleapis.com/upload/drive/v2/files?uploadType=resu&&alt=json返回提供的MIME类型无效>
我替换了MIME TYPE application / vnd.google-apps.document
与 application / msword
并且API开始工作。 Google API有什么变化吗?
谷歌报告称有一次停运 $ b https://www.google.com/appsstatus#hl=zh-CN&v=issue&sid=4&iid=11e934443f5863c5b46aa779c36ff4d3
This morning, I tried using Google APIs File Insert where I provided MIME TYPE as application/vnd.google-apps.document.
I am getting the following response from Google API
HttpError: <HttpError 400 when requesting https://www.googleapis.com/upload/drive/v2/files?uploadType=resumable&alt=json returned "Invalid mime type provided">
I replaced MIME TYPE application/vnd.google-apps.document
with application/msword
and the API started working. Has anything changed with Google API?
Google reported there was an outage
https://www.google.com/appsstatus#hl=en&v=issue&sid=4&iid=11e934443f5863c5b46aa779c36ff4d3
这篇关于Google的File Insert v2 API无法识别MIME TYPE application / vnd.google-apps.document的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!