Skip to main content

mime

namefor
mimetext/plain; charset=utf-8
mime typetext/plain
mime encodingcharset=utf-8
mimefor
application/octet-stream通用 fallback
application/octet-binary通用 fallback - 静态
text/plain文本
application/jsonJSON
  • Protobuf
    • application/protobuf
    • application/protobuf; proto=org.some.Message
    • application/vnd.google.protobuf
      • used by Prometheus
    • application/x-google-protobuf
      • used by Charles Proxy
      • used by Prometheus
    • application/x-protobuf
      • used by Cloudflare

Content Type

text/html
text/richtext
text/plain
text/css
text/x-script
text/x-component
text/x-java-source
text/x-markdown
application/javascript
application/x-javascript
text/javascript
text/js
image/x-icon
image/vnd.microsoft.icon
application/x-perl
application/x-httpd-cgi
text/xml
application/xml
application/rss+xml
application/vnd.api+json
application/x-protobuf
application/json
multipart/bag
multipart/mixed
application/xhtml+xml
font/ttf
font/otf
font/x-woff
image/svg+xml
application/vnd.ms-fontobject
application/ttf
application/x-ttf
application/otf
application/x-otf
application/truetype
application/opentype
application/x-opentype
application/font-woff
application/eot
application/font
application/font-sfnt
application/wasm
application/javascript-binast
application/manifest+json
application/ld+json
application/graphql+json
application/geo+json

Office

extensionmime
MS Office
.docapplication/msword
.dotapplication/msword
--
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotxapplication/vnd.openxmlformats-officedocument.wordprocessingml.template
.docmapplication/vnd.ms-word.document.macroEnabled.12
.dotmapplication/vnd.ms-word.template.macroEnabled.12
-
.xlsapplication/vnd.ms-excel
.xltapplication/vnd.ms-excel
.xlaapplication/vnd.ms-excel
-
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltxapplication/vnd.openxmlformats-officedocument.spreadsheetml.template
.xlsmapplication/vnd.ms-excel.sheet.macroEnabled.12
.xltmapplication/vnd.ms-excel.template.macroEnabled.12
.xlamapplication/vnd.ms-excel.addin.macroEnabled.12
.xlsbapplication/vnd.ms-excel.sheet.binary.macroEnabled.12
-
.pptapplication/vnd.ms-powerpoint
.potapplication/vnd.ms-powerpoint
.ppsapplication/vnd.ms-powerpoint
.ppaapplication/vnd.ms-powerpoint
-
.pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation
.potxapplication/vnd.openxmlformats-officedocument.presentationml.template
.ppsxapplication/vnd.openxmlformats-officedocument.presentationml.slideshow
.ppamapplication/vnd.ms-powerpoint.addin.macroEnabled.12
.pptmapplication/vnd.ms-powerpoint.presentation.macroEnabled.12
.potmapplication/vnd.ms-powerpoint.template.macroEnabled.12
.ppsmapplication/vnd.ms-powerpoint.slideshow.macroEnabled.12
-
.mdbapplication/vnd.ms-access

cfb

file-type

  • NodeJS filte-type 只能检测到 cfb
    • cfb 为 .doc, .xls, .ppt, .msi 的 supertype
  • 通过调用 ffprobe 来获取音频长度 caffco/get-audio-duration

metadata

exif

  • exif - Exchangeable image file format
  • iptc - International Press Telecommunications Council
  • xmp - Extensible Metadata Platform
  • icc - International Color Consortium
  • mpf - Multi-Picture Format
  • exiftool
  • NodeJS