What are the Google Apps MIME Types in Google Docs and Google Drive?
Asked Answered
B

4

45

What are the MIME types for each of the following file extensions:

  • gdoc
  • gslide
  • gsheet
  • gdraw
Budworth answered 10/7, 2012 at 11:35 Comment(0)
L
77

Google Docs:

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

Google Presentations:

application/vnd.google-apps.presentation

Google Spreadsheets:

application/vnd.google-apps.spreadsheet

Google Drawing:

application/vnd.google-apps.drawing


See here for more information.


Here is a long list of Google Docs and Google Drive MIME types (it is not exhaustive):

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
Limiter answered 10/7, 2012 at 14:23 Comment(5)
I found that I had to use application/vnd.google-apps.kix in order to view (only) Google Docs (.gdoc) in the Google Picker.Soloma
@Ali Afshar, Voteup for your useful answer. Thanks my compatriot !Tami
I tried application/vnd.google-apps.kix & application/vnd.google-apps.document mime type but it gives me error "Invalid mime type provided".Alamode
application/vnd.google-apps.document its not working. my doc always in deselecting stateJolie
@Ali Afshar: Could you please tell me what's the difference between google drive file (application/vnd.google-apps.file) and other file types?Balthasar
D
4

This is my List of 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"
Damselfly answered 24/9, 2015 at 13:41 Comment(1)
I have found this developers.google.com/drive/v3/web/mime-types but can I upload zip folder using "application/zip" ? Please guide me.Kreager
R
3

(Jul 2016) The answer by @Ali still stands today, addressing the OP's question of what are the specific MIMEtypes of Google Workspace (formerly G Suite, Google Apps) Drive "editor" (Docs, Sheets, Slides) files.

However, for the Google Drive API, it's also important to clarify/organize the various supported MIME types that are used for importing files when uploading to Drive, i.e., plain text or Word files to Google Docs, as well as export MIME types when downloading from Drive, i.e., Sheets files as CSV.

Rivero answered 15/7, 2016 at 23:29 Comment(0)
M
-4

For those of you trying to create a new editable Google Document, try with the following

DocumentApp.create("My new GDoc");
Membership answered 2/12, 2013 at 13:4 Comment(3)
What programming language is this? What library are you using? I don't think this is usefulBudworth
@Budworth It's the Google Apps Scripts API. The reason of the post is to help someone looking for the specific MIME type of a Google Document file, which is different from a regular file.Proper
Thanks for the info, I see where you're coming from now. I don't think this relates to the question though as it doesn't relate to mime typesBudworth

© 2022 - 2024 — McMap. All rights reserved.