Google云端硬盘打开,带有菜单Mime Type(适用于Google文件) [英] Google Drive Open with menu Mime Type for Google files

查看:170
本文介绍了Google云端硬盘打开,带有菜单Mime Type(适用于Google文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要在开发者控制台中添加Google Mime类型以允许我的应用打开Goog​​le文件时遇到问题. 在开发者控制台的与驱动器界面集成"部分中,我设置了一些哑剧类型,例如"application/pdf"或"image/png",没有问题,在驱动器界面中的打开方式"菜单中找到了我的应用.

I have an issue when I want to add the Google Mime Types in the developer console to allow my app to open Google Files. In the developer console in the section "Integrate with Drive interface" I set some mime type like 'application/pdf' or 'image/png' no issue and in the drive interface in the open with menu I find my app.

我想为Google云端硬盘文件设置Mime类型,但是当我想在开发者控制台中保存修改时,出现错误用户请求无效.请验证您的URL,然后重试".这不是真正的错误,因为我是用法语得到的. 确切的错误消息:用户请求无效.请检查您的URL,然后重试.

I want to set Mime Types for Google Drive files but when I want to save modification in developper console I get an error "User request is not valid. Please verify your url and retry". This is not the real error because I got it in french. Exact error message : The user request is invalid. Please check your URL and try again.

我尝试了我们在这里找到的Mime类型: https://开发人员. google.com/drive/web/mime-types?hl=fr

I tried Mime type we found here : https://developers.google.com/drive/web/mime-types?hl=fr

我还尝试了Mime Type,例如:gdoc的application/vnd.google-apps.kix或表格的application/vnd.google-apps.ritz,但没有结果.我还测试了gsheet,gdoc,但没有结果.

I also tried Mime Type like : application/vnd.google-apps.kix for gdoc or application/vnd.google-apps.ritz for sheets but no results. I also tested gsheet, gdoc but no result.

如果我尝试使用application/vnd.google-apps.folder,它会起作用.

If I try application/vnd.google-apps.folder it works.

我尝试在默认Mime类型"和次要Mime类型"字段中添加,但结果相同.

I tried to add that in the Default Mime Type and Secondary Mime Type field but same result.

我不知道该怎么做....

I don't know what to do more....

推荐答案

实际上,要在Google云端硬盘中使用您的应用打开Goog​​le文档,您必须检查导入功能(允许用户打开可转换为格式的文件该应用程序可以打开.) 请参见ref: https://developers.google.com/drive/web/integrate- open#open_and_convert_google_docs_in_your_app

In fact to open a Google document with your app in Google Drive you have to check the importing function (Allow users to open files that can be converted to a format that this app can open.) See ref : https://developers.google.com/drive/web/integrate-open#open_and_convert_google_docs_in_your_app

我的理解是您无法打开google文档,而只能以特定格式导入您的应用"当前版本.不要忘了添加您的应用程序可以打开mime类型的mime类型,即可导出google文件.有关兼容的mime类型,请参见google开发者页面.

My understanding is you can't open a google document but just "import in your app" the current version in a specific format. Don't forget to add in the mime type your app can open a mime type the google file can be exported. See google developer page for a compatible mime type.

这篇关于Google云端硬盘打开,带有菜单Mime Type(适用于Google文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆