以下每个文件扩展名的MIME类型是什么:
答案 0 :(得分:66)
Google文档:
application/vnd.google-apps.document
application/vnd.google-apps.kix
Google演示文稿:
application/vnd.google-apps.presentation
Google Spreadsheets:
application/vnd.google-apps.spreadsheet
Google绘图:
application/vnd.google-apps.drawing
有关详细信息,请参阅here。
以下是一长串Google文档和Google云端硬盘MIME类型(并非详尽无遗):
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
答案 1 :(得分:2)
这是我的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"
答案 2 :(得分:2)
(2016年7月) @Ali的回答至今仍然存在,回答OP问题:Google Apps的特定MIME类型(文档,表格,幻灯片等)文件。但是在Google Drive API的情况下,澄清/组织在将上传到 Drive时用于导入文件的各种受支持的MIME类型也很重要,即plain text [or Word] files to Google Docs,以及从云端硬盘下载时导出应用文件,即Sheets files as CSV。
答案 3 :(得分:-4)
对于那些尝试制作新的可修改Google文档的人,请尝试使用以下
DocumentApp.create("My new GDoc");