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

前端 未结 4 1728
南笙
南笙 2020-11-27 05:11

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

  • gdoc
  • gslide
  • gsheet
  • gdraw
相关标签:
4条回答
  • 2020-11-27 05:49

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

    DocumentApp.create("My new GDoc");
    
    0 讨论(0)
  • 2020-11-27 05:53

    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"
    
    0 讨论(0)
  • 2020-11-27 06:00

    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
    
    0 讨论(0)
  • 2020-11-27 06:02

    (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.

    • Drive import MIMEtypes
      • Chart of common import conversions & examples
    • Drive export MIMEtypes
    0 讨论(0)
提交回复
热议问题