41

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

  • gdoc
  • gslide
  • gsheet
  • gdraw
Ali Afshar
  • 38,455
  • 12
  • 89
  • 108
Edd
  • 7,660
  • 14
  • 44
  • 70

4 Answers4

71

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
Ali Afshar
  • 38,455
  • 12
  • 89
  • 108
  • 2
    I found that I had to use application/vnd.google-apps.kix in order to view (only) Google Docs (.gdoc) in the Google Picker. – daveywc Jan 31 '13 at 20:13
  • @Ali Afshar, Voteup for your useful answer. Thanks my compatriot ! – Mohebifar Sep 15 '13 at 18:33
  • I tried application/vnd.google-apps.kix & application/vnd.google-apps.document mime type but it gives me error "Invalid mime type provided". – CrazyGeek Oct 01 '14 at 10:46
  • application/vnd.google-apps.document its not working. my doc always in deselecting state – Madhu May 20 '15 at 10:06
  • @Ali Afshar: Could you please tell me what's the difference between google drive file (application/vnd.google-apps.file) and other file types? – Atihska Jul 28 '16 at 17:59
3

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"
Carl Manaster
  • 38,312
  • 15
  • 96
  • 147
Jacek Grzelaczyk
  • 703
  • 2
  • 8
  • 20
  • I have found this https://developers.google.com/drive/v3/web/mime-types but can I upload zip folder using "application/zip" ? Please guide me. – Chintan Khetiya Nov 14 '17 at 07:16
3

(Jul 2016) The answer by @Ali still stands today, answering the OP question of what are the specific MIMEtypes of the G Suite/Google Apps (Docs, Sheets, Slides, etc.) files.

However in the case of 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 exporting G Suite editor files when downloading from Drive, i.e., Sheets files as CSV.

wescpy
  • 8,970
  • 2
  • 46
  • 43
-4

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

DocumentApp.create("My new GDoc");
Agustín
  • 1,489
  • 1
  • 13
  • 7
  • 2
    What programming language is this? What library are you using? I don't think this is useful – Edd Dec 02 '13 at 17:11
  • @Edd 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. – Agustín Dec 03 '13 at 14:13
  • 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 types – Edd Dec 03 '13 at 19:44