github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/chat/attachments/mime_types.go (about) 1 // Copyright 2018 Keybase Inc. All rights reserved. 2 // Use of this source code is governed by a BSD 3 // license that can be found in the LICENSE file. 4 5 package attachments 6 7 var mimeTypes = map[string]string{ 8 ".3gp": "video/3gpp", 9 ".3gpp": "video/3gpp", 10 ".7z": "application/x-7z-compressed", 11 ".aac": "audio/aac", 12 ".ai": "application/postscript", 13 ".asf": "video/x-ms-asf", 14 ".asx": "video/x-ms-asf", 15 ".atom": "application/atom+xml", 16 ".avi": "video/x-msvideo", 17 ".bin": "application/octet-stream", 18 ".bmp": "image/x-ms-bmp", 19 ".cco": "application/x-cocoa", 20 ".crt": "application/x-x509-ca-cert", 21 ".css": "text/css", 22 ".deb": "application/octet-stream", 23 ".der": "application/x-x509-ca-cert", 24 ".dll": "application/octet-stream", 25 ".dmg": "application/octet-stream", 26 ".doc": "application/msword", 27 ".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", 28 ".ear": "application/java-archive", 29 ".eot": "application/vnd.ms-fontobject", 30 ".eps": "application/postscript", 31 ".exe": "application/octet-stream", 32 ".flv": "video/x-flv", 33 ".gif": "image/gif", 34 ".heic": "image/heif", 35 ".heif": "image/heif", 36 ".hqx": "application/mac-binhex40", 37 ".htc": "text/x-component", 38 ".htm": "text/html", 39 ".html": "text/html", 40 ".ico": "image/x-icon", 41 ".img": "application/octet-stream", 42 ".iso": "application/octet-stream", 43 ".jad": "text/vnd.sun.j2me.app-descriptor", 44 ".jar": "application/java-archive", 45 ".jardiff": "application/x-java-archive-diff", 46 ".jng": "image/x-jng", 47 ".jnlp": "application/x-java-jnlp-file", 48 ".jpeg": "image/jpeg", 49 ".jpg": "image/jpeg", 50 ".js": "application/javascript", 51 ".json": "application/json", 52 ".kar": "audio/midi", 53 ".kml": "application/vnd.google-earth.kml+xml", 54 ".kmz": "application/vnd.google-earth.kmz", 55 ".m3u8": "application/vnd.apple.mpegurl", 56 ".m4a": "audio/x-m4a", 57 ".m4v": "video/x-m4v", 58 ".mid": "audio/midi", 59 ".midi": "audio/midi", 60 ".mml": "text/mathml", 61 ".mng": "video/x-mng", 62 ".mov": "video/quicktime", 63 ".mp3": "audio/mpeg", 64 ".mp4": "video/mp4", 65 ".mpeg": "video/mpeg", 66 ".mpg": "video/mpeg", 67 ".msi": "application/octet-stream", 68 ".msm": "application/octet-stream", 69 ".msp": "application/octet-stream", 70 ".odg": "application/vnd.oasis.opendocument.graphics", 71 ".odp": "application/vnd.oasis.opendocument.presentation", 72 ".ods": "application/vnd.oasis.opendocument.spreadsheet", 73 ".odt": "application/vnd.oasis.opendocument.text", 74 ".ogg": "audio/ogg", 75 ".pdb": "application/x-pilot", 76 ".pdf": "application/pdf", 77 ".pem": "application/x-x509-ca-cert", 78 ".pl": "application/x-perl", 79 ".pm": "application/x-perl", 80 ".png": "image/png", 81 ".ppt": "application/vnd.ms-powerpoint", 82 ".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation", 83 ".prc": "application/x-pilot", 84 ".ps": "application/postscript", 85 ".qt": "video/quicktime", 86 ".ra": "audio/x-realaudio", 87 ".rar": "application/x-rar-compressed", 88 ".rpm": "application/x-redhat-package-manager", 89 ".rss": "application/rss+xml", 90 ".rtf": "application/rtf", 91 ".run": "application/x-makeself", 92 ".sea": "application/x-sea", 93 ".shtml": "text/html", 94 ".sit": "application/x-stuffit", 95 ".svg": "image/svg+xml", 96 ".svgz": "image/svg+xml", 97 ".swf": "application/x-shockwave-flash", 98 ".tcl": "application/x-tcl", 99 ".tif": "image/tiff", 100 ".tiff": "image/tiff", 101 ".tk": "application/x-tcl", 102 ".ts": "video/mp2t", 103 ".txt": "text/plain", 104 ".war": "application/java-archive", 105 ".wbmp": "image/vnd.wap.wbmp", 106 ".webm": "video/webm", 107 ".webp": "image/webp", 108 ".wml": "text/vnd.wap.wml", 109 ".wmlc": "application/vnd.wap.wmlc", 110 ".wmv": "video/x-ms-wmv", 111 ".woff": "application/font-woff", 112 ".xhtml": "application/xhtml+xml", 113 ".xls": "application/vnd.ms-excel", 114 ".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", 115 ".xml": "text/xml", 116 ".xpi": "application/x-xpinstall", 117 ".xspf": "application/xspf+xml", 118 ".zip": "application/zip", 119 }