Google文档和Google云端硬盘中的Google Apps MIMEtypes是什么?

以下每个文件扩展名的MIMEtypes是什么?

  • gdoc
  • gslide
  • gsheet
  • gdraw

谷歌文档:

application/vnd.google-apps.document
application/vnd.google-apps.kix

Google演示文稿:

application/vnd.google-apps.presentation

Google电子表格:

application/vnd.google-apps.spreadsheet

Google绘图:

application/vnd.google-apps.drawing


在这里看到更多的信息。


以下是Google文档和Google云端硬盘MIMEtypes的一长串列表(并非详尽无遗):

 application/vnd.google-apps.audio application/vnd.google-apps.document application/vnd.google-apps.drawing application/vnd.google-apps.file application/vnd.google-apps.folder application/vnd.google-apps.form application/vnd.google-apps.fusiontable application/vnd.google-apps.kix application/vnd.google-apps.photo application/vnd.google-apps.presentation application/vnd.google-apps.script application/vnd.google-apps.sites application/vnd.google-apps.spreadsheet application/vnd.google-apps.unknown application/vnd.google-apps.video 

这是我的Mimetypes列表

  "application/vnd.google-apps.audio" "application/vnd.google-apps.document" "application/vnd.google-apps.drawing" "application/vnd.google-apps.file" "application/vnd.google-apps.folder" "application/vnd.google-apps.form" "application/vnd.google-apps.fusiontable" "application/vnd.google-apps.photo" "application/vnd.google-apps.presentation" "application/vnd.google-apps.sites" "application/vnd.google-apps.spreadsheet" "application/vnd.google-apps.unknown" "application/vnd.google-apps.video" "application/pdf" "application/msword" "application/vnd.openxmlformats-officedocument.wordprocessingml.document" "application/vnd.ms-powerpoint.presentation.macroEnabled.12" "application/vnd.ms-excel" "image/jpeg" "audio/mpeg" "video/mpeg" "application/zip" "text/plain" "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" "application/vnd.android.package-archive" "application/vnd.google-apps.kix" 

(2016年7月) @Ali的答案至今仍然存在,回答了Google Apps(文档,表格,幻灯片等)文件的特定MIMEtypes的OP问题。 但是,对于Google Drive API ,澄清/组织用于在上传云端硬盘时导入文件的各种支持的MIMEtypes(即纯文本[或Word]文件到Google文档 )以及导出云端硬盘下载应用程序文件, 即将表格文件保存为CSV 。

  • 驱动器导入 MIMEtypes
  • 驱动器导出 MIMEtypes

对于那些想要创build新的可编辑Google文档的人,请尝试以下操作

 DocumentApp.create("My new GDoc");