Last active
July 20, 2019 20:10
-
-
Save bbottema/2061681433f02a0d4b4ce712805d66e4 to your computer and use it in GitHub Desktop.
Mimetypes compiled from two big public lists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MimeType { | |
private static final MimetypesFileTypeMap MIMETYPES_FILE_TYPE_MAP = createMap(); | |
/** | |
* @return a vastly improved mimetype map | |
*/ | |
private static MimetypesFileTypeMap createMap() { | |
try (InputStream is = MimeType.class.getClassLoader().getResourceAsStream("mimetypes.txt")) { | |
return new MimetypesFileTypeMap(is); | |
} catch (IOException ex) { | |
throw new RuntimeException(ex); | |
} | |
} | |
public static String getContentType(String fileName) { | |
return getContentType(fileName, null); | |
} | |
public static String getContentType(String fileName, String charset) { | |
String mimeType = MIMETYPES_FILE_TYPE_MAP.getContentType(fileName.toLowerCase()); | |
if (charset != null && (mimeType.startsWith("text/") || mimeType.contains("javascript"))) { | |
mimeType += ";charset=" + charset.toLowerCase(); | |
} | |
return mimeType; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void String S = ""; // paste both lists in here | |
public static void main(String[] args) { | |
String[] entries = S.split("\n"); | |
// reverse sort order so the x-generic versions get overwritten by more specific version | |
// when importing into a MimetypesFileTypeMap | |
TreeMap<String, Set<String>> types = new TreeMap<>(Collections.reverseOrder()); | |
for (String entry : entries) { | |
String[] parts = entry.split(" "); | |
if (!types.containsKey(parts[0])) { | |
types.put(parts[0], new HashSet<String>()); | |
} | |
types.get(parts[0]).addAll(Arrays.asList(copyOfRange(parts, 1, parts.length))); | |
} | |
for (Map.Entry<String, Set<String>> mimeEntry : types.entrySet()) { | |
System.out.print(mimeEntry.getKey()); | |
for (String ext : mimeEntry.getValue()) { | |
System.out.print(" " + ext); | |
} | |
System.out.print("\n"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xgl/movie xmz | |
xgl/drawing xgz | |
x-world/x-vrt vrt | |
x-world/x-vrml wrl vrml wrz | |
x-world/x-svr svr | |
x-world/x-3dmf qd3d qd3 3dmf 3dm | |
x-music/x-midi midi mid | |
x-conference/x-cooltalk ice | |
www/mime mime | |
windows/metafile wmf | |
video/x-sgi-movie movie mv | |
video/x-scm scm | |
video/x-qtc qtc | |
video/x-msvideo avi | |
video/x-ms-asf-plugin asx | |
video/x-ms-asf asf asx | |
video/x-mpeq2a mp2 | |
video/x-mpeg mp3 mp2 | |
video/x-motion-jpeg mjpg | |
video/x-isvideo isu | |
video/x-gl gl | |
video/x-generic mp4 wmv swf dvd mov mpeg osp ogv | |
video/x-fli fli | |
video/x-dv dif dv | |
video/x-dl dl | |
video/x-atomic3d-feature fmf | |
video/x-amt-showrun xsr | |
video/x-amt-demorun xdr | |
video/vosaic vos | |
video/vnd.vivo viv vivo | |
video/vnd.rn-realvideo rv | |
video/vivo viv vivo | |
video/vdo vdo | |
video/quicktime qt mov moov | |
video/msvideo avi | |
video/mpeg m2v mp3 mpv m1v mpe mpg mpegv mpeg vbs mp2 mpa | |
video/gl gl | |
video/fli fli | |
video/dl dl | |
video/avs-video avs | |
video/avi avi | |
video/animaflex afl | |
text/xml xml XML osm | |
text/x-vcalendar vcs | |
text/x-uuencode uu uue | |
text/x-uil uil | |
text/x-tex tex | |
text/x-tcl tcl | |
text/x-sql sql | |
text/x-speech spc talk | |
text/x-sgml sgml sgm | |
text/x-setext etx | |
text/x-server-parsed-html ssi shtml | |
text/x-script.zsh zsh | |
text/x-script.tcsh tcsh | |
text/x-script.tcl tcl | |
text/x-script.sh sh | |
text/x-script.scheme scm | |
text/x-script.rexx rexx | |
text/x-script.phyton py | |
text/x-script.perl-module pm | |
text/x-script.perl pl | |
text/x-script.lisp lsp | |
text/x-script.ksh ksh | |
text/x-script.guile scm | |
text/x-script.elisp el | |
text/x-script.csh csh | |
text/x-script hlb | |
text/x-python py | |
text/x-po pot po | |
text/x-pascal p pas | |
text/x-m m | |
text/x-log log | |
text/x-la-asf lsx | |
text/x-java-source java jav | |
text/x-java java | |
text/x-h hh h | |
text/x-fortran f f77 for f90 | |
text/x-csrc c | |
text/x-component htc | |
text/x-c++src cpp c++ | |
text/x-c++hdr h | |
text/x-c cc cpp c | |
text/x-bibtex bib | |
text/x-audiosoft-intra aip | |
text/x-asm s asm | |
text/webviewhtml htt | |
text/vnd.wap.wmlscript wmls | |
text/vnd.wap.wml wml | |
text/vnd.rn-realtext rt | |
text/vnd.fmi.flexstor flx | |
text/vnd.abc abc | |
text/uri-list uni uris unis uri | |
text/tab-separated-values tab tsv | |
text/sgml sgml sgm | |
text/scriplet wsc | |
text/rtf rtf | |
text/richtext rt rtf rtx | |
text/plain com hh c++ def log sdml for conf TEXT lst TXT java text jav mar cc cxx c f g h idc list m txt f90 pl | |
text/pascal pas | |
text/mcf mcf | |
text/javascript js | |
text/html htm HTM htmls acgi html HTML shtml htx | |
text/ecmascript js | |
text/csv csv | |
text/css css | |
text/asp asp | |
paleovu/x-pv pvu | |
music/x-karaoke kar | |
music/crescendo midi mid | |
multipart/x-zip zip | |
multipart/x-ustar ustar | |
multipart/x-gzip gzip | |
model/x-pov pov | |
model/vrml wrl vrml wrz | |
model/vnd.dwf dwf | |
model/iges igs iges | |
message/rfc822 mime mht mhtml | |
image/xpm xpm | |
image/xbm xbm | |
image/x-xwindowdump xwd | |
image/x-xwd xwd | |
image/x-xpixmap xpm pm | |
image/x-xbm xbm | |
image/x-xbitmap xbm | |
image/x-windows-bmp bmp | |
image/x-tiff tif tiff | |
image/x-rgb rgb | |
image/x-quicktime qtif qti qif | |
image/x-portable-pixmap ppm | |
image/x-portable-greymap pgm | |
image/x-portable-graymap pgm | |
image/x-portable-bitmap pbm | |
image/x-portable-anymap pnm | |
image/x-pict pct | |
image/x-pcx pcx | |
image/x-niff niff nif | |
image/x-jps jps | |
image/x-jg art | |
image/x-icon ico | |
image/x-generic jpg tif wmf tiff bmp xpm png jpeg emf | |
image/x-eps eps | |
image/x-dwg svf dxf dwg | |
image/x-cmu-raster ras | |
image/vnd.xiff xif | |
image/vnd.wap.wbmp wbmp | |
image/vnd.rn-realpix rp | |
image/vnd.rn-realflash rf | |
image/vnd.net-fpx fpx | |
image/vnd.fpx fpx | |
image/vnd.dwg svf dxf dwg | |
image/vasa mcf | |
image/tiff tif tiff | |
image/svg+xml svgz svg | |
image/png x-png png PNG | |
image/pjpeg jpg jfif jpeg jpe | |
image/pict pic pict | |
image/naplps naplps nap | |
image/jutvision jut | |
image/jpeg jpg JPG jfif jpeg jfif-tbnl jpe | |
image/ief iefs ief | |
image/gif gif GIF | |
image/g3fax g3 | |
image/florian flo turbot | |
image/fif fif | |
image/cmu-raster ras rast | |
image/bmp bmp bm | |
i-world/i-vrml ivr | |
drawing/x-dwf dwf (old) | |
chemical/x-pdb xyz pdb | |
audio/xm xm | |
audio/x-wav wav | |
audio/x-voc voc | |
audio/x-vnd.audioexplosion.mjuicemediafile mjf | |
audio/x-twinvq-plugin vql vqe | |
audio/x-twinvq vqf | |
audio/x-realaudio ra | |
audio/x-psid sid | |
audio/x-pn-realaudio-plugin rmp rpm ra | |
audio/x-pn-realaudio rmm rmp rm ra ram | |
audio/x-nspaudio lma la | |
audio/x-mpequrl m3u | |
audio/x-mpeg-3 mp3 | |
audio/x-mpeg mpg mpeg mp2 | |
audio/x-mod mod | |
audio/x-midi midi mid | |
audio/x-mid midi mid | |
audio/x-liveaudio lam | |
audio/x-jam jam | |
audio/x-gsm gsm gsd | |
audio/x-generic mp3 wma wav ogg | |
audio/x-au au | |
audio/x-aiff aiff aifc aif | |
audio/x-aifc aifc | |
audio/x-adpcm snd | |
audio/wav wav | |
audio/voxware vox | |
audio/voc voc | |
audio/vnd.qcelp qcp | |
audio/tsplayer tsp | |
audio/tsp-audio tsi | |
audio/s3m s3m | |
audio/nspaudio lma la | |
audio/mpeg3 mp3 | |
audio/mpeg mp3 mpg mpeg3 m2a mp2 mpga mpa | |
audio/mod mod | |
audio/midi midi mid kar | |
audio/mid rmi | |
audio/make.my.funk pfunk | |
audio/make pfunk funk my | |
audio/it it | |
audio/basic au snd | |
audio/aiff aiff aifc aif | |
audio/ac3 ac3 | |
application/zip zip | |
application/xml xml | |
application/x-zip-compressed zip | |
application/x-x509-user-cert crt | |
application/x-x509-ca-cert der cer crt | |
application/x-wri wri | |
application/x-wpwin wpd | |
application/x-world wrl svr | |
application/x-wintalk wtk | |
application/x-winhelp hlp | |
application/x-wais-source src wsrc | |
application/x-vrml vrml | |
application/x-vnd.oasis.opendocument.spreadsheet ods | |
application/x-vnd.ls-xpix xpix | |
application/x-vnd.audioexplosion.mzz mzz | |
application/x-visio vsd vst vsw | |
application/x-ustar ustar | |
application/x-troff-msvideo avi | |
application/x-troff-ms ms | |
application/x-troff-me me | |
application/x-troff-man man | |
application/x-troff t roff tr | |
application/x-trash autosave | |
application/x-texinfo texi texinfo | |
application/x-tex tex | |
application/x-tcl tcl | |
application/x-tbook tbk sbk | |
application/x-tar tar | |
application/x-sv4crc sv4crc | |
application/x-sv4cpio sv4cpio | |
application/x-stuffit sit | |
application/x-sprite spr sprite | |
application/x-sit sit | |
application/x-shockwave-flash swf | |
application/x-shellscript sh | |
application/x-sharedlib o | |
application/x-shar shar sh | |
application/x-sh sh | |
application/x-seelogo sl | |
application/x-sea sea | |
application/x-sdp sdp | |
application/x-rtf rtf | |
application/x-rpm rpm | |
application/x-qpro wb1 | |
application/x-project mpt mpc mpv mpx | |
application/x-portable-anymap pnm | |
application/x-pointplus css | |
application/x-pkcs7-signature p7a | |
application/x-pkcs7-mime p7m p7c | |
application/x-pkcs7-certreqresp p7r | |
application/x-pkcs7-certificates spc | |
application/x-pkcs12 p12 | |
application/x-pkcs10 p10 | |
application/x-pixclscript plx | |
application/x-php php | |
application/x-perl pl | |
application/x-pcl pcl | |
application/x-pagemaker pm4 pm5 | |
application/x-omcregerator omcr | |
application/x-omcdatamaker omcd | |
application/x-omc omc | |
application/x-nokia-9000-communicator-add-on-software aos | |
application/x-newton-compatible-pkg pkg | |
application/x-netcdf cdf nc | |
application/x-navistyle stl | |
application/x-navimap map | |
application/x-navidoc nvd | |
application/x-navi-animation ani | |
application/x-mspowerpoint ppt | |
application/x-msexcel xlw xla xls | |
application/x-ms-dos-executable msi exe | |
application/x-mplayer2 asx | |
application/x-mix-transfer nix | |
application/x-mif mif | |
application/x-midi midi mid | |
application/x-meme mm | |
application/x-mathcad mcd | |
application/x-magic-cap-package-1.0 mc$ | |
application/x-macbinary bin | |
application/x-mac-binhex40 hqx | |
application/x-lzx lzx | |
application/x-lzh lzh | |
application/x-lotusscreencam scm | |
application/x-lotus wq1 | |
application/x-livescreen ivy | |
application/x-lisp lsp | |
application/x-lha lha | |
application/x-latex ltx latex | |
application/x-ksh ksh | |
application/x-koan skm skp skd skt | |
application/x-javascript js | |
application/x-java-commerce jcm | |
application/x-java-class class | |
application/x-java-archive jar | |
application/x-java-applet class | |
application/x-ip2 ip | |
application/x-inventor iv | |
application/x-internett-signup ins | |
application/x-ima ima | |
application/x-httpd-imap imap | |
application/x-helpfile help hlp | |
application/x-hdf hdf | |
application/x-gzip gz gzip | |
application/x-gtar gtar | |
application/x-gss gss | |
application/x-gsp gsp | |
application/x-freelance pre | |
application/x-frame mif | |
application/x-font-ttf ttf TTF | |
application/x-font-otf otf OTF | |
application/x-excel xld xlt xlw xlv xlk xlm xll xla xlc xls xlb | |
application/x-esrehber es | |
application/x-envoy evy env | |
application/x-elc elc | |
application/x-dvi dvi | |
application/x-director dcr dir dxr | |
application/x-deepv deepv | |
application/x-deb deb | |
application/x-csh csh | |
application/x-cpt cpt | |
application/x-cpio cpio | |
application/x-conference nsc | |
application/x-compressed zip gz tgz z | |
application/x-compress zip rar gz tar z | |
application/x-compactpro cpt | |
application/x-cocoa cco | |
application/x-cmu-raster ras | |
application/x-chat chat cha | |
application/x-cdlink vcd | |
application/x-cdf cdf | |
application/x-cd-image iso | |
application/x-bzip2 bz2 boz | |
application/x-bzip bz | |
application/x-bytecode.python pyc | |
application/x-bytecode.elisp elisp) (compiled elc | |
application/x-bsh shar sh bsh | |
application/x-blender blend | |
application/x-binhex40 hqx | |
application/x-binary bin | |
application/x-bcpio bcpio | |
application/x-awk awk | |
application/x-authorware-seg aas | |
application/x-authorware-map aam | |
application/x-authorware-bin aab | |
application/x-aim aim | |
application/x-123 wk1 | |
application/wordperfect6.1 w61 | |
application/wordperfect6.0 w60 wp5 | |
application/wordperfect wp wpd wp6 wp5 | |
application/vocaltec-media-file vmf | |
application/vocaltec-media-desc vmd | |
application/vnd.xara web | |
application/vnd.wap.wmlscriptc wmlsc | |
application/vnd.wap.wmlc wmlc | |
application/vnd.rn-realplayer rnx | |
application/vnd.rn-realmedia rm | |
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx | |
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx | |
application/vnd.oasis.text odt | |
application/vnd.oasis.spreadsheet ods | |
application/vnd.oasis.presentation odp | |
application/vnd.oasis.opendocument.text odt | |
application/vnd.oasis.database odb | |
application/vnd.nokia.ringing-tone rng | |
application/vnd.nokia.configuration-message ncm | |
application/vnd.ms-project mpp | |
application/vnd.ms-powerpoint ppa pptx pps pwz pot ppt pptm | |
application/vnd.ms-pki.stl stl | |
application/vnd.ms-pki.seccat cat | |
application/vnd.ms-pki.pko pko | |
application/vnd.ms-pki.certstore sst | |
application/vnd.ms-excel xlsx xlw xlsm xlm xll xlc xls XLS xlb | |
application/vnd.hp-pcl pcl | |
application/vnd.hp-hpgl hgl hpgl hpg | |
application/vnd.fdf fdf | |
application/vda vda | |
application/toolbook tbk | |
application/streamingmedia ssm | |
application/step step stp | |
application/sounder sdr | |
application/solids sol | |
application/smil smil smi | |
application/sla stl | |
application/set set | |
application/sea sea | |
application/sdp sdp | |
application/rtf rtf rtx | |
application/rss+xml rss | |
application/ringing-tones rng | |
application/pro_eng prt part | |
application/powerpoint ppt | |
application/postscript ps ai eps | |
application/plain text | |
application/pkix-crl crl | |
application/pkix-cert cer crt | |
application/pkcs7-signature p7s | |
application/pkcs7-mime p7m p7c | |
application/pkcs10 p10 | |
application/pkcs-crl crl | |
application/pkcs-12 p12 | |
application/pdf pdf | |
application/oda oda | |
application/octet-stream com psd uu a lha bin lzx o arc exe arj dump lzh zoo lhx saveme | |
application/netmc mcp | |
application/mswrite wri | |
application/msword dot doc w6w wiz docm word docx | |
application/mspowerpoint pps pot ppt ppz | |
application/mime aps | |
application/mcad mcd | |
application/mbedlet mbd | |
application/marc mrc | |
application/macbinary bin | |
application/mac-compactpro cpt | |
application/mac-binhex40 hqx | |
application/mac-binhex hqx | |
application/mac-binary bin | |
application/lzx lzx | |
application/lha lha | |
application/javascript js | |
application/java-byte-code class | |
application/java class | |
application/inf inf | |
application/iges igs iges | |
application/i-deas unv | |
application/hta hta | |
application/hlp hlp | |
application/groupwise vew | |
application/gnutar tgz | |
application/futuresplash spl | |
application/freeloader frl | |
application/fractals fif | |
application/excel xld xlt xlw xlv xl xlk xlm xll xla xlc xls xlb | |
application/envoy evy | |
application/ecmascript js | |
application/dxf dxf | |
application/dsptype tsp | |
application/drafting drw | |
application/commonground dp | |
application/clariscad ccad | |
application/cdf cdf | |
application/book boo book | |
application/binhex4 hqx | |
application/binhex hqx | |
application/base64 mm mme | |
application/arj arj | |
application/acad dwg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.sitepoint.com/mime-types-complete-list/ | |
application/acad dwg | |
application/arj arj | |
application/base64 mm mme | |
application/binhex hqx | |
application/binhex4 hqx | |
application/book boo book | |
application/cdf cdf | |
application/clariscad ccad | |
application/commonground dp | |
application/drafting drw | |
application/dsptype tsp | |
application/dxf dxf | |
application/ecmascript js | |
application/envoy evy | |
application/excel xl xla xlb xlc xld xlk xll xlm xls xlt xlv xlw | |
application/fractals fif | |
application/freeloader frl | |
application/futuresplash spl | |
application/gnutar tgz | |
application/groupwise vew | |
application/hlp hlp | |
application/hta hta | |
application/i-deas unv | |
application/iges iges igs | |
application/inf inf | |
application/java class | |
application/java-byte-code class | |
application/javascript js | |
application/lha lha | |
application/lzx lzx | |
application/mac-binary bin | |
application/mac-binhex hqx | |
application/mac-binhex40 hqx | |
application/mac-compactpro cpt | |
application/macbinary bin | |
application/marc mrc | |
application/mbedlet mbd | |
application/mcad mcd | |
application/mime aps | |
application/mspowerpoint pot pps ppt ppz | |
application/msword doc dot w6w wiz word | |
application/mswrite wri | |
application/netmc mcp | |
application/octet-stream a arc arj bin com dump exe lha lhx lzh lzx o psd saveme uu zoo | |
application/oda oda | |
application/pdf pdf | |
application/pkcs-12 p12 | |
application/pkcs-crl crl | |
application/pkcs10 p10 | |
application/pkcs7-mime p7c p7m | |
application/pkcs7-signature p7s | |
application/pkix-cert cer crt | |
application/pkix-crl crl | |
application/plain text | |
application/postscript ai eps ps | |
application/powerpoint ppt | |
application/pro_eng part prt | |
application/ringing-tones rng | |
application/rtf rtf rtx | |
application/sdp sdp | |
application/sea sea | |
application/set set | |
application/sla stl | |
application/smil smi smil | |
application/solids sol | |
application/sounder sdr | |
application/step step stp | |
application/streamingmedia ssm | |
application/toolbook tbk | |
application/vda vda | |
application/vnd.fdf fdf | |
application/vnd.hp-hpgl hgl hpg hpgl | |
application/vnd.hp-pcl pcl | |
application/vnd.ms-excel xlb xlc xll xlm xls xlw | |
application/vnd.ms-pki.certstore sst | |
application/vnd.ms-pki.pko pko | |
application/vnd.ms-pki.seccat cat | |
application/vnd.ms-pki.stl stl | |
application/vnd.ms-powerpoint pot ppa pps ppt pwz | |
application/vnd.ms-project mpp | |
application/vnd.nokia.configuration-message ncm | |
application/vnd.nokia.ringing-tone rng | |
application/vnd.rn-realmedia rm | |
application/vnd.rn-realplayer rnx | |
application/vnd.wap.wmlc wmlc | |
application/vnd.wap.wmlscriptc wmlsc | |
application/vnd.xara web | |
application/vocaltec-media-desc vmd | |
application/vocaltec-media-file vmf | |
application/wordperfect wp wp5 wp6 wpd | |
application/wordperfect6.0 w60 wp5 | |
application/wordperfect6.1 w61 | |
application/x-123 wk1 | |
application/x-aim aim | |
application/x-authorware-bin aab | |
application/x-authorware-map aam | |
application/x-authorware-seg aas | |
application/x-bcpio bcpio | |
application/x-binary bin | |
application/x-binhex40 hqx | |
application/x-bsh bsh sh shar | |
application/x-bytecode.elisp (compiled elisp) elc | |
application/x-bytecode.python pyc | |
application/x-bzip bz | |
application/x-bzip2 boz bz2 | |
application/x-cdf cdf | |
application/x-cdlink vcd | |
application/x-chat cha chat | |
application/x-cmu-raster ras | |
application/x-cocoa cco | |
application/x-compactpro cpt | |
application/x-compress z | |
application/x-compressed gz tgz z zip | |
application/x-conference nsc | |
application/x-cpio cpio | |
application/x-cpt cpt | |
application/x-csh csh | |
application/x-deepv deepv | |
application/x-director dcr dir dxr | |
application/x-dvi dvi | |
application/x-elc elc | |
application/x-envoy env evy | |
application/x-esrehber es | |
application/x-excel xla xlb xlc xld xlk xll xlm xls xlt xlv xlw | |
application/x-frame mif | |
application/x-freelance pre | |
application/x-gsp gsp | |
application/x-gss gss | |
application/x-gtar gtar | |
application/x-gzip gz gzip | |
application/x-hdf hdf | |
application/x-helpfile help hlp | |
application/x-httpd-imap imap | |
application/x-ima ima | |
application/x-internett-signup ins | |
application/x-inventor iv | |
application/x-ip2 ip | |
application/x-java-class class | |
application/x-java-commerce jcm | |
application/x-javascript js | |
application/x-koan skd skm skp skt | |
application/x-ksh ksh | |
application/x-latex latex ltx | |
application/x-lha lha | |
application/x-lisp lsp | |
application/x-livescreen ivy | |
application/x-lotus wq1 | |
application/x-lotusscreencam scm | |
application/x-lzh lzh | |
application/x-lzx lzx | |
application/x-mac-binhex40 hqx | |
application/x-macbinary bin | |
application/x-magic-cap-package-1.0 mc$ | |
application/x-mathcad mcd | |
application/x-meme mm | |
application/x-midi mid midi | |
application/x-mif mif | |
application/x-mix-transfer nix | |
application/x-mplayer2 asx | |
application/x-msexcel xla xls xlw | |
application/x-mspowerpoint ppt | |
application/x-navi-animation ani | |
application/x-navidoc nvd | |
application/x-navimap map | |
application/x-navistyle stl | |
application/x-netcdf cdf nc | |
application/x-newton-compatible-pkg pkg | |
application/x-nokia-9000-communicator-add-on-software aos | |
application/x-omc omc | |
application/x-omcdatamaker omcd | |
application/x-omcregerator omcr | |
application/x-pagemaker pm4 pm5 | |
application/x-pcl pcl | |
application/x-pixclscript plx | |
application/x-pkcs10 p10 | |
application/x-pkcs12 p12 | |
application/x-pkcs7-certificates spc | |
application/x-pkcs7-certreqresp p7r | |
application/x-pkcs7-mime p7c p7m | |
application/x-pkcs7-signature p7a | |
application/x-pointplus css | |
application/x-portable-anymap pnm | |
application/x-project mpc mpt mpv mpx | |
application/x-qpro wb1 | |
application/x-rtf rtf | |
application/x-sdp sdp | |
application/x-sea sea | |
application/x-seelogo sl | |
application/x-sh sh | |
application/x-shar sh shar | |
application/x-shockwave-flash swf | |
application/x-sit sit | |
application/x-sprite spr sprite | |
application/x-stuffit sit | |
application/x-sv4cpio sv4cpio | |
application/x-sv4crc sv4crc | |
application/x-tar tar | |
application/x-tbook sbk tbk | |
application/x-tcl tcl | |
application/x-tex tex | |
application/x-texinfo texi texinfo | |
application/x-troff roff t tr | |
application/x-troff-man man | |
application/x-troff-me me | |
application/x-troff-ms ms | |
application/x-troff-msvideo avi | |
application/x-ustar ustar | |
application/x-visio vsd vst vsw | |
application/x-vnd.audioexplosion.mzz mzz | |
application/x-vnd.ls-xpix xpix | |
application/x-vrml vrml | |
application/x-wais-source src wsrc | |
application/x-winhelp hlp | |
application/x-wintalk wtk | |
application/x-world svr wrl | |
application/x-wpwin wpd | |
application/x-wri wri | |
application/x-x509-ca-cert cer crt der | |
application/x-x509-user-cert crt | |
application/x-zip-compressed zip | |
application/xml xml | |
application/zip zip | |
audio/aiff aif aifc aiff | |
audio/basic au snd | |
audio/it it | |
audio/make funk my pfunk | |
audio/make.my.funk pfunk | |
audio/mid rmi | |
audio/midi kar mid midi | |
audio/mod mod | |
audio/mpeg m2a mp2 mpa mpg mpga | |
audio/mpeg3 mp3 | |
audio/nspaudio la lma | |
audio/s3m s3m | |
audio/tsp-audio tsi | |
audio/tsplayer tsp | |
audio/vnd.qcelp qcp | |
audio/voc voc | |
audio/voxware vox | |
audio/wav wav | |
audio/x-adpcm snd | |
audio/x-aiff aif aifc aiff | |
audio/x-au au | |
audio/x-gsm gsd gsm | |
audio/x-jam jam | |
audio/x-liveaudio lam | |
audio/x-mid mid midi | |
audio/x-midi mid midi | |
audio/x-mod mod | |
audio/x-mpeg mp2 | |
audio/x-mpeg-3 mp3 | |
audio/x-mpequrl m3u | |
audio/x-nspaudio la lma | |
audio/x-pn-realaudio ra ram rm rmm rmp | |
audio/x-pn-realaudio-plugin ra rmp rpm | |
audio/x-psid sid | |
audio/x-realaudio ra | |
audio/x-twinvq vqf | |
audio/x-twinvq-plugin vqe vql | |
audio/x-vnd.audioexplosion.mjuicemediafile mjf | |
audio/x-voc voc | |
audio/x-wav wav | |
audio/xm xm | |
chemical/x-pdb pdb xyz | |
drawing/x-dwf (old) dwf | |
i-world/i-vrml ivr | |
image/bmp bm bmp | |
image/cmu-raster ras rast | |
image/fif fif | |
image/florian flo turbot | |
image/g3fax g3 | |
image/gif gif | |
image/ief ief iefs | |
image/jpeg jfif jfif-tbnl jpe jpeg jpg | |
image/jutvision jut | |
image/naplps nap naplps | |
image/pict pic pict | |
image/pjpeg jfif jpe jpeg jpg | |
image/png png x-png | |
image/tiff tif tiff | |
image/vasa mcf | |
image/vnd.dwg dwg dxf svf | |
image/vnd.fpx fpx | |
image/vnd.net-fpx fpx | |
image/vnd.rn-realflash rf | |
image/vnd.rn-realpix rp | |
image/vnd.wap.wbmp wbmp | |
image/vnd.xiff xif | |
image/x-cmu-raster ras | |
image/x-dwg dwg dxf svf | |
image/x-icon ico | |
image/x-jg art | |
image/x-jps jps | |
image/x-niff nif niff | |
image/x-pcx pcx | |
image/x-pict pct | |
image/x-portable-anymap pnm | |
image/x-portable-bitmap pbm | |
image/x-portable-graymap pgm | |
image/x-portable-greymap pgm | |
image/x-portable-pixmap ppm | |
image/x-quicktime qif qti qtif | |
image/x-rgb rgb | |
image/x-tiff tif tiff | |
image/x-windows-bmp bmp | |
image/x-xbitmap xbm | |
image/x-xbm xbm | |
image/x-xpixmap pm xpm | |
image/x-xwd xwd | |
image/x-xwindowdump xwd | |
image/xbm xbm | |
image/xpm xpm | |
message/rfc822 mht mhtml mime | |
model/iges iges igs | |
model/vnd.dwf dwf | |
model/vrml vrml wrl wrz | |
model/x-pov pov | |
multipart/x-gzip gzip | |
multipart/x-ustar ustar | |
multipart/x-zip zip | |
music/crescendo mid midi | |
music/x-karaoke kar | |
paleovu/x-pv pvu | |
text/asp asp | |
text/css css | |
text/ecmascript js | |
text/html acgi htm html htmls htx shtml | |
text/javascript js | |
text/mcf mcf | |
text/pascal pas | |
text/plain c c++ cc com conf cxx def f f90 for g h hh idc jav java list log lst m mar pl sdml text txt | |
text/richtext rt rtf rtx | |
text/scriplet wsc | |
text/sgml sgm sgml | |
text/tab-separated-values tsv | |
text/uri-list uni unis uri uris | |
text/vnd.abc abc | |
text/vnd.fmi.flexstor flx | |
text/vnd.rn-realtext rt | |
text/vnd.wap.wml wml | |
text/vnd.wap.wmlscript wmls | |
text/webviewhtml htt | |
text/x-asm asm s | |
text/x-audiosoft-intra aip | |
text/x-c c cc cpp | |
text/x-component htc | |
text/x-fortran f f77 f90 for | |
text/x-h h hh | |
text/x-java-source jav java | |
text/x-la-asf lsx | |
text/x-m m | |
text/x-pascal p | |
text/x-script hlb | |
text/x-script.csh csh | |
text/x-script.elisp el | |
text/x-script.guile scm | |
text/x-script.ksh ksh | |
text/x-script.lisp lsp | |
text/x-script.perl pl | |
text/x-script.perl-module pm | |
text/x-script.phyton py | |
text/x-script.rexx rexx | |
text/x-script.scheme scm | |
text/x-script.sh sh | |
text/x-script.tcl tcl | |
text/x-script.tcsh tcsh | |
text/x-script.zsh zsh | |
text/x-server-parsed-html shtml ssi | |
text/x-setext etx | |
text/x-sgml sgm sgml | |
text/x-speech spc talk | |
text/x-uil uil | |
text/x-uuencode uu uue | |
text/x-vcalendar vcs | |
text/xml xml | |
video/animaflex afl | |
video/avi avi | |
video/avs-video avs | |
video/dl dl | |
video/fli fli | |
video/gl gl | |
video/mpeg m1v m2v mp2 mp3 mpa mpe mpeg mpg | |
video/msvideo avi | |
video/quicktime moov mov qt | |
video/vdo vdo | |
video/vivo viv vivo | |
video/vnd.rn-realvideo rv | |
video/vnd.vivo viv vivo | |
video/vosaic vos | |
video/x-amt-demorun xdr | |
video/x-amt-showrun xsr | |
video/x-atomic3d-feature fmf | |
video/x-dl dl | |
video/x-dv dif dv | |
video/x-fli fli | |
video/x-gl gl | |
video/x-isvideo isu | |
video/x-motion-jpeg mjpg | |
video/x-mpeg mp2 mp3 | |
video/x-mpeq2a mp2 | |
video/x-ms-asf asf asx | |
video/x-ms-asf-plugin asx | |
video/x-msvideo avi | |
video/x-qtc qtc | |
video/x-scm scm | |
video/x-sgi-movie movie mv | |
windows/metafile wmf | |
www/mime mime | |
x-conference/x-cooltalk ice | |
x-music/x-midi mid midi | |
x-world/x-3dmf 3dm 3dmf qd3 qd3d | |
x-world/x-svr svr | |
x-world/x-vrml vrml wrl wrz | |
x-world/x-vrt vrt | |
xgl/drawing xgz | |
xgl/movie xmz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://stackoverflow.com/a/46265038/441662 | |
application/javascript js | |
application/msword doc docx docm | |
application/pdf pdf | |
application/postscript ai eps ps | |
application/rss+xml rss | |
application/rtf rtf | |
application/vnd.ms-excel xls xlsx xlsm XLS | |
application/vnd.ms-powerpoint ppt pps pot pptx pptm | |
application/vnd.oasis.database odb | |
application/vnd.oasis.opendocument.text odt | |
application/vnd.oasis.presentation odp | |
application/vnd.oasis.spreadsheet ods | |
application/vnd.oasis.text odt | |
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx | |
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx | |
application/x-awk awk | |
application/x-blender blend | |
application/x-cd-image iso | |
application/x-compress zip gz tar rar | |
application/x-deb deb | |
application/x-font-otf otf OTF | |
application/x-font-ttf ttf TTF | |
application/x-java-applet class | |
application/x-java-archive jar | |
application/xml xml | |
application/x-ms-dos-executable exe msi | |
application/x-perl pl | |
application/x-php php | |
application/x-rpm rpm | |
application/x-sharedlib o | |
application/x-shellscript sh | |
application/x-tar tar | |
application/x-texinfo texinfo texi | |
application/x-tex tex | |
application/x-trash autosave | |
application/x-troff t tr roff | |
application/x-vnd.oasis.opendocument.spreadsheet ods | |
application/zip zip | |
audio/ac3 ac3 | |
audio/basic au | |
audio/midi midi mid | |
audio/mpeg mp3 mpeg3 | |
audio/x-aifc aifc | |
audio/x-aiff aif aiff | |
audio/x-generic wav wma mp3 ogg | |
audio/x-mpeg mpeg mpg | |
audio/x-wav wav | |
image/gif gif GIF | |
image/ief ief | |
image/jpeg jpeg jpg jpe JPG | |
image/png png PNG | |
image/svg+xml svg svgz | |
image/tiff tiff tif | |
image/x-eps eps | |
image/x-generic bmp jpg jpeg png tif tiff xpm wmf emf | |
image/x-xwindowdump xwd | |
text/css css | |
text/csv csv | |
text/html html htm HTML HTM | |
text/plain txt text TXT TEXT | |
text/richtext rtx | |
text/rtf rtf | |
text/tab-separated-values tsv tab | |
text/x-bibtex bib | |
text/x-c++hdr h | |
text/x-csrc c | |
text/x-c++src cpp c++ | |
text/x-java java | |
text/x-log log | |
text/xml xml XML osm | |
text/x-pascal pas | |
text/x-po po pot | |
text/x-python py | |
text/x-sql sql | |
text/x-tcl tcl | |
text/x-tex tex | |
video/mpeg mpeg mpg mpe mpv vbs mpegv | |
video/msvideo avi | |
video/quicktime qt mov moov | |
video/x-generic wmv mpeg mp4 ogv swf mov dvd osp | |
video/x-msvideo avi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment