完整的 mime type 列表

举报
拿我格子衫来 发表于 2022/03/17 23:25:09 2022/03/17
【摘要】 G Suite documents and corresponding export MIME types G Suite formats and supported export MIME types map to each other as follows:   Google Doc FormatConversion...

G Suite documents and corresponding export MIME types

G Suite formats and supported export MIME types map to each other as follows:

 

Google Doc Format Conversion Format Corresponding MIME type
Documents HTML text/html
  HTML (zipped) application/zip
  Plain text text/plain
  Rich text application/rtf
  Open Office doc} application/vnd.oasis.opendocument.text
  PDF application/pdf
  MS Word document application/vnd.openxmlformats-officedocument.wordprocessingml.document
  EPUB application/epub+zip
Spreadsheets MS Excel application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  Open Office sheet application/x-vnd.oasis.opendocument.spreadsheet
PDF application/pdf  
  CSV (first sheet only) text/csv
  (sheet only) text/tab-separated-values
  HTML (zipped) application/zip
Drawings JPEG image/jpeg
  PNG image/png
  SVG image/svg+xml
  PDF application/pdf
Presentations MS PowerPoint application/vnd.openxmlformats-officedocument.presentationml.presentation
  Open Office presentation application/vnd.oasis.opendocument.presentation
  PDF application/pdf
  Plain text text/plain
Apps Scripts JSON application/vnd.google-apps.script+json

Call about.get to get an About resource. The About resource contains an exportFormats field with a list of all supported export formats supported by the system for this user.

 

 

 

 

 


  
  1. {".3gp", "video/3gpp"},
  2. {".apk", "application/vnd.android.package-archive"},
  3. {".asf", "video/x-ms-asf"},
  4. {".avi", "video/x-msvideo"},
  5. {".bin", "application/octet-stream"},
  6. {".bmp", "image/bmp"},
  7. {".c", "text/plain"},
  8. {".class", "application/octet-stream"},
  9. {".conf", "text/plain"},
  10. {".cpp", "text/plain"},
  11. {".doc", "application/msword"},
  12. {".docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"},
  13. {".xls", "application/vnd.ms-excel"},
  14. {".xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},
  15. {".exe", "application/octet-stream"},
  16. {".gif", "image/gif"},
  17. {".gtar", "application/x-gtar"},
  18. {".gz", "application/x-gzip"},
  19. {".h", "text/plain"},
  20. {".htm", "text/html"},
  21. {".html", "text/html"},
  22. {".jar", "application/java-archive"},
  23. {".java", "text/plain"},
  24. {".jpeg", "image/jpeg"},
  25. {".jpg", "image/jpeg"},
  26. {".js", "application/x-javascript"},
  27. {".log", "text/plain"},
  28. {".m3u", "audio/x-mpegurl"},
  29. {".m4a", "audio/mp4a-latm"},
  30. {".m4b", "audio/mp4a-latm"},
  31. {".m4p", "audio/mp4a-latm"},
  32. {".m4u", "video/vnd.mpegurl"},
  33. {".m4v", "video/x-m4v"},
  34. {".mov", "video/quicktime"},
  35. {".mp2", "audio/x-mpeg"},
  36. {".mp3", "audio/x-mpeg"},
  37. {".mp4", "video/mp4"},
  38. {".mpc", "application/vnd.mpohun.certificate"},
  39. {".mpe", "video/mpeg"},
  40. {".mpeg", "video/mpeg"},
  41. {".mpg", "video/mpeg"},
  42. {".mpg4", "video/mp4"},
  43. {".mpga", "audio/mpeg"},
  44. {".msg", "application/vnd.ms-outlook"},
  45. {".ogg", "audio/ogg"},
  46. {".pdf", "application/pdf"},
  47. {".png", "image/png"},
  48. {".pps", "application/vnd.ms-powerpoint"},
  49. {".ppt", "application/vnd.ms-powerpoint"},
  50. {".pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation"},
  51. {".prop", "text/plain"},
  52. {".rc", "text/plain"},
  53. {".rmvb", "audio/x-pn-realaudio"},
  54. {".rtf", "application/rtf"},
  55. {".sh", "text/plain"},
  56. {".tar", "application/x-tar"},
  57. {".tgz", "application/x-compressed"},
  58. {".txt", "text/plain"},
  59. {".wav", "audio/x-wav"},
  60. {".wma", "audio/x-ms-wma"},
  61. {".wmv", "audio/x-ms-wmv"},
  62. {".wps", "application/vnd.ms-works"},
  63. {".xml", "text/plain"},
  64. {".z", "application/x-compress"},
  65. {".zip", "application/x-zip-compressed"},
  66. {"", "*/*"}

 

 

G Suite and Drive MIME Types

You can use MIME types to filter query results or have your app listed in the Chrome Web Store list of apps that can open specific file types.

The following table lists MIME types that are specific to G Suite and Google Drive.

MIME Type Description
application/vnd.google-apps.audio  
application/vnd.google-apps.document Google Docs
application/vnd.google-apps.drawing Google Drawing
application/vnd.google-apps.file Google Drive file
application/vnd.google-apps.folder Google Drive folder
application/vnd.google-apps.form Google Forms
application/vnd.google-apps.fusiontable Google Fusion Tables
application/vnd.google-apps.map Google My Maps
application/vnd.google-apps.photo  
application/vnd.google-apps.presentation Google Slides
application/vnd.google-apps.script Google Apps Scripts
application/vnd.google-apps.site Google Sites
application/vnd.google-apps.spreadsheet Google Sheets
application/vnd.google-apps.unknown  
application/vnd.google-apps.video  
application/vnd.google-apps.drive-sdk 3rd party shortcut

 

文章来源: fizzz.blog.csdn.net,作者:拿我格子衫来,版权归原作者所有,如需转载,请联系作者。

原文链接:fizzz.blog.csdn.net/article/details/103228868

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。