Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cyhook/02a0199f9f8ba43044e84aeb066dff4a to your computer and use it in GitHub Desktop.
Save cyhook/02a0199f9f8ba43044e84aeb066dff4a to your computer and use it in GitHub Desktop.
Maps file extensions to MIME types.
["application/x-dosexec"] = "exe",
["text/x-python"] = "py",
["application/x-tar"] = "tar",
["text/plain"] = "txt",
["application/zip"] = "zip",
["multipart/x-zip"] = "zip",
["multipart/x-gzip"] = "gzip",
["text/x-script.python"] = "py",
["application/x-bytecode.python"] = "pyc",
["audio/x-mpeg"] = "mp3",
["audio/x-wav"] = "wav",
["image/bmp"] = "bmp",
["image/gif"] = "gif",
["text/plain"] = "txt",
["application/rtf"] = "rtf",
["application/x-sh"] = "sh",
["application/javascript"] = "js",
["application/x-shockwave-flash"] = "swf",
["image/jpeg"] = "jpg",
["image/png"] = "png",
["text/html"] = "html",
["application/pdf"] = "pdf",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment