diff --git a/MimeTypeList/MimeTypeList.sln b/MimeTypeList/MimeTypeList.sln new file mode 100644 index 0000000..51568ef --- /dev/null +++ b/MimeTypeList/MimeTypeList.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28307.645 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MimeTypeList", "MimeTypeList\MimeTypeList.csproj", "{0DF52E1B-C85A-4CCC-97E8-03A9BB6A07CF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0DF52E1B-C85A-4CCC-97E8-03A9BB6A07CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0DF52E1B-C85A-4CCC-97E8-03A9BB6A07CF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0DF52E1B-C85A-4CCC-97E8-03A9BB6A07CF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0DF52E1B-C85A-4CCC-97E8-03A9BB6A07CF}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {831B232E-E08F-4EE1-B3B9-B04B8F23FE93} + EndGlobalSection +EndGlobal diff --git a/MimeTypeList/MimeTypeList/ApplicationMimeType.cs b/MimeTypeList/MimeTypeList/ApplicationMimeType.cs new file mode 100644 index 0000000..6065296 --- /dev/null +++ b/MimeTypeList/MimeTypeList/ApplicationMimeType.cs @@ -0,0 +1,63 @@ +namespace MimeTypeList.MimeTypeNamespaces +{ + /// Application mime type namespace. + public class ApplicationMimeType + { + /// application/fsharp-script + public readonly string fsharp_script = ".fsx"; + + /// application/msaccess + public readonly string msaccess = ".adp"; + + /// application/msword + public readonly string msword = ".doc"; + + /// application/octet-stream + public readonly string octet_stream = ".bin"; + + /// application/onenote + public readonly string onenote = ".one"; + + /// application/postscript + public readonly string postscript = ".eps"; + + /// application/step + public readonly string step = ".step"; + + /// application/vnd.ms-excel + public readonly string vnd_ms_excel = ".xls"; + + /// application/vnd.ms-powerpoint + public readonly string vnd_ms_powerpoint = ".ppt"; + + /// application/vnd.ms-works + public readonly string vnd_ms_works = ".wks"; + + /// application/vnd.visio + public readonly string vnd_visio = ".vsd"; + + /// application/x-director + public readonly string x_director = ".dir"; + + /// application/x-shockwave-flash + public readonly string x_shockwave_flash = ".swf"; + + /// application/x-x509-ca-cert + public readonly string x_x509_ca_cert = ".cer"; + + /// application/x-zip-compressed + public readonly string x_zip_compressed = ".zip"; + + /// application/xhtml+xml + public readonly string xhtml_xml = ".xhtml"; + + /// application/xml + public readonly string xml = ".xml"; + + /// Internal default constructor. + internal ApplicationMimeType() + { + // + } + } +} \ No newline at end of file diff --git a/MimeTypeList/MimeTypeList/AudioMimeType.cs b/MimeTypeList/MimeTypeList/AudioMimeType.cs new file mode 100644 index 0000000..a3feb47 --- /dev/null +++ b/MimeTypeList/MimeTypeList/AudioMimeType.cs @@ -0,0 +1,39 @@ +namespace MimeTypeList.MimeTypeNamespaces +{ + /// Audio mime type namespace. + public class AudioMimeType + { + /// audio/aac + public readonly string aac = ".AAC"; + + /// audio/aiff + public readonly string aiff = ".aiff"; + + /// audio/basic + public readonly string basic = ".snd"; + + /// audio/mid + public readonly string mid = ".midi"; + + /// audio/wav + public readonly string wav = ".wav"; + + /// audio/x-m4a + public readonly string x_m4a = ".m4a"; + + /// audio/x-mpegurl + public readonly string x_mpegurl = ".m3u"; + + /// audio/x-pn-realaudio + public readonly string x_pn_realaudio = ".ra"; + + /// audio/x-smd + public readonly string x_smd = ".smd"; + + /// Default constructor. + internal AudioMimeType() + { + // + } + } +} \ No newline at end of file diff --git a/MimeTypeList/MimeTypeList/FileExtensions.cs b/MimeTypeList/MimeTypeList/FileExtensions.cs new file mode 100644 index 0000000..8c4465c --- /dev/null +++ b/MimeTypeList/MimeTypeList/FileExtensions.cs @@ -0,0 +1,1833 @@ +namespace MimeTypeList +{ + /// A list of mime types referenced by extension. + public class FileExtensions + { + /// *.3gp2 + public static readonly string _3gp2 = "video/3gpp2"; + + /// *.3gpp + public static readonly string _3gpp = "video/3gpp"; + + /// *.7z + public static readonly string _7z = "application/x-7z-compressed"; + + /// *.aa + public static readonly string _aa = "audio/audible"; + + /// *.AAC + public static readonly string _AAC = "audio/aac"; + + /// *.aaf + public static readonly string _aaf = "application/octet-stream"; + + /// *.aax + public static readonly string _aax = "audio/vnd.audible.aax"; + + /// *.ac3 + public static readonly string _ac3 = "audio/ac3"; + + /// *.aca + public static readonly string _aca = "application/octet-stream"; + + /// *.accda + public static readonly string _accda = "application/msaccess.addin"; + + /// *.accdb + public static readonly string _accdb = "application/msaccess"; + + /// *.accdc + public static readonly string _accdc = "application/msaccess.cab"; + + /// *.accde + public static readonly string _accde = "application/msaccess"; + + /// *.accdr + public static readonly string _accdr = "application/msaccess.runtime"; + + /// *.accdt + public static readonly string _accdt = "application/msaccess"; + + /// *.accdw + public static readonly string _accdw = "application/msaccess.webapplication"; + + /// *.accft + public static readonly string _accft = "application/msaccess.ftemplate"; + + /// *.acx + public static readonly string _acx = "application/internet-property-stream"; + + /// *.AddIn + public static readonly string _AddIn = "text/xml"; + + /// *.ade + public static readonly string _ade = "application/msaccess"; + + /// *.adobebridge + public static readonly string _adobebridge = "application/x-bridge-url"; + + /// *.adp + public static readonly string _adp = "application/msaccess"; + + /// *.ADT + public static readonly string _ADT = "audio/vnd.dlna.adts"; + + /// *.ADTS + public static readonly string _ADTS = "audio/aac"; + + /// *.afm + public static readonly string _afm = "application/octet-stream"; + + /// *.ai + public static readonly string _ai = "application/postscript"; + + /// *.aif + public static readonly string _aif = "audio/aiff"; + + /// *.aifc + public static readonly string _aifc = "audio/aiff"; + + /// *.aiff + public static readonly string _aiff = "audio/aiff"; + + /// *.air + public static readonly string _air = "application/vnd.adobe.air-application-installer-package+zip"; + + /// *.amc + public static readonly string _amc = "application/mpeg"; + + /// *.anx + public static readonly string _anx = "application/annodex"; + + /// *.apk + public static readonly string _apk = "application/vnd.android.package-archive"; + + /// *.application + public static readonly string _application = "application/x-ms-application"; + + /// *.art + public static readonly string _art = "image/x-jg"; + + /// *.asa + public static readonly string _asa = "application/xml"; + + /// *.asax + public static readonly string _asax = "application/xml"; + + /// *.ascx + public static readonly string _ascx = "application/xml"; + + /// *.asd + public static readonly string _asd = "application/octet-stream"; + + /// *.asf + public static readonly string _asf = "video/x-ms-asf"; + + /// *.ashx + public static readonly string _ashx = "application/xml"; + + /// *.asi + public static readonly string _asi = "application/octet-stream"; + + /// *.asm + public static readonly string _asm = "text/plain"; + + /// *.asmx + public static readonly string _asmx = "application/xml"; + + /// *.aspx + public static readonly string _aspx = "application/xml"; + + /// *.asr + public static readonly string _asr = "video/x-ms-asf"; + + /// *.asx + public static readonly string _asx = "video/x-ms-asf"; + + /// *.atom + public static readonly string _atom = "application/atom+xml"; + + /// *.au + public static readonly string _au = "audio/basic"; + + /// *.avi + public static readonly string _avi = "video/x-msvideo"; + + /// *.axa + public static readonly string _axa = "audio/annodex"; + + /// *.axs + public static readonly string _axs = "application/olescript"; + + /// *.axv + public static readonly string _axv = "video/annodex"; + + /// *.bas + public static readonly string _bas = "text/plain"; + + /// *.bcpio + public static readonly string _bcpio = "application/x-bcpio"; + + /// *.bin + public static readonly string _bin = "application/octet-stream"; + + /// *.bmp + public static readonly string _bmp = "image/bmp"; + + /// *.c + public static readonly string _c = "text/plain"; + + /// *.cab + public static readonly string _cab = "application/octet-stream"; + + /// *.caf + public static readonly string _caf = "audio/x-caf"; + + /// *.calx + public static readonly string _calx = "application/vnd.ms-office.calx"; + + /// *.cat + public static readonly string _cat = "application/vnd.ms-pki.seccat"; + + /// *.cc + public static readonly string _cc = "text/plain"; + + /// *.cd + public static readonly string _cd = "text/plain"; + + /// *.cdda + public static readonly string _cdda = "audio/aiff"; + + /// *.cdf + public static readonly string _cdf = "application/x-cdf"; + + /// *.cer + public static readonly string _cer = "application/x-x509-ca-cert"; + + /// *.cfg + public static readonly string _cfg = "text/plain"; + + /// *.chm + public static readonly string _chm = "application/octet-stream"; + + /// *.class + public static readonly string _class = "application/x-java-applet"; + + /// *.clp + public static readonly string _clp = "application/x-msclip"; + + /// *.cmd + public static readonly string _cmd = "text/plain"; + + /// *.cmx + public static readonly string _cmx = "image/x-cmx"; + + /// *.cnf + public static readonly string _cnf = "text/plain"; + + /// *.cod + public static readonly string _cod = "image/cis-cod"; + + /// *.config + public static readonly string _config = "application/xml"; + + /// *.contact + public static readonly string _contact = "text/x-ms-contact"; + + /// *.coverage + public static readonly string _coverage = "application/xml"; + + /// *.cpio + public static readonly string _cpio = "application/x-cpio"; + + /// *.cpp + public static readonly string _cpp = "text/plain"; + + /// *.crd + public static readonly string _crd = "application/x-mscardfile"; + + /// *.crl + public static readonly string _crl = "application/pkix-crl"; + + /// *.crt + public static readonly string _crt = "application/x-x509-ca-cert"; + + /// *.cs + public static readonly string _cs = "text/plain"; + + /// *.csdproj + public static readonly string _csdproj = "text/plain"; + + /// *.csh + public static readonly string _csh = "application/x-csh"; + + /// *.csproj + public static readonly string _csproj = "text/plain"; + + /// *.css + public static readonly string _css = "text/css"; + + /// *.csv + public static readonly string _csv = "text/csv"; + + /// *.cur + public static readonly string _cur = "application/octet-stream"; + + /// *.cxx + public static readonly string _cxx = "text/plain"; + + /// *.dat + public static readonly string _dat = "application/octet-stream"; + + /// *.datasource + public static readonly string _datasource = "application/xml"; + + /// *.dbproj + public static readonly string _dbproj = "text/plain"; + + /// *.dcr + public static readonly string _dcr = "application/x-director"; + + /// *.def + public static readonly string _def = "text/plain"; + + /// *.deploy + public static readonly string _deploy = "application/octet-stream"; + + /// *.der + public static readonly string _der = "application/x-x509-ca-cert"; + + /// *.dgml + public static readonly string _dgml = "application/xml"; + + /// *.dib + public static readonly string _dib = "image/bmp"; + + /// *.dif + public static readonly string _dif = "video/x-dv"; + + /// *.dir + public static readonly string _dir = "application/x-director"; + + /// *.disco + public static readonly string _disco = "text/xml"; + + /// *.divx + public static readonly string _divx = "video/divx"; + + /// *.dll + public static readonly string _dll = "application/x-msdownload"; + + /// *.dll.config + public static readonly string _dll_config = "text/xml"; + + /// *.dlm + public static readonly string _dlm = "text/dlm"; + + /// *.doc + public static readonly string _doc = "application/msword"; + + /// *.docm + public static readonly string _docm = "application/vnd.ms-word.document.macroEnabled.12"; + + /// *.docx + public static readonly string _docx = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; + + /// *.dot + public static readonly string _dot = "application/msword"; + + /// *.dotm + public static readonly string _dotm = "application/vnd.ms-word.template.macroEnabled.12"; + + /// *.dotx + public static readonly string _dotx = "application/vnd.openxmlformats-officedocument.wordprocessingml.template"; + + /// *.dsp + public static readonly string _dsp = "application/octet-stream"; + + /// *.dsw + public static readonly string _dsw = "text/plain"; + + /// *.dtd + public static readonly string _dtd = "text/xml"; + + /// *.dtsConfig + public static readonly string _dtsConfig = "text/xml"; + + /// *.dv + public static readonly string _dv = "video/x-dv"; + + /// *.dvi + public static readonly string _dvi = "application/x-dvi"; + + /// *.dwf + public static readonly string _dwf = "drawing/x-dwf"; + + /// *.dwg + public static readonly string _dwg = "application/acad"; + + /// *.dwp + public static readonly string _dwp = "application/octet-stream"; + + /// *.dxf + public static readonly string _dxf = "application/x-dxf"; + + /// *.dxr + public static readonly string _dxr = "application/x-director"; + + /// *.eml + public static readonly string _eml = "message/rfc822"; + + /// *.emz + public static readonly string _emz = "application/octet-stream"; + + /// *.eot + public static readonly string _eot = "application/vnd.ms-fontobject"; + + /// *.eps + public static readonly string _eps = "application/postscript"; + + /// *.es + public static readonly string _es = "application/ecmascript"; + + /// *.etl + public static readonly string _etl = "application/etl"; + + /// *.etx + public static readonly string _etx = "text/x-setext"; + + /// *.evy + public static readonly string _evy = "application/envoy"; + + /// *.exe + public static readonly string _exe = "application/octet-stream"; + + /// *.exe.config + public static readonly string _exe_config = "text/xml"; + + /// *.fdf + public static readonly string _fdf = "application/vnd.fdf"; + + /// *.fif + public static readonly string _fif = "application/fractals"; + + /// *.filters + public static readonly string _filters = "application/xml"; + + /// *.fla + public static readonly string _fla = "application/octet-stream"; + + /// *.flac + public static readonly string _flac = "audio/flac"; + + /// *.flr + public static readonly string _flr = "x-world/x-vrml"; + + /// *.flv + public static readonly string _flv = "video/x-flv"; + + /// *.fsscript + public static readonly string _fsscript = "application/fsharp-script"; + + /// *.fsx + public static readonly string _fsx = "application/fsharp-script"; + + /// *.generictest + public static readonly string _generictest = "application/xml"; + + /// *.gif + public static readonly string _gif = "image/gif"; + + /// *.gpx + public static readonly string _gpx = "application/gpx+xml"; + + /// *.group + public static readonly string _group = "text/x-ms-group"; + + /// *.gsm + public static readonly string _gsm = "audio/x-gsm"; + + /// *.gtar + public static readonly string _gtar = "application/x-gtar"; + + /// *.gz + public static readonly string _gz = "application/x-gzip"; + + /// *.h + public static readonly string _h = "text/plain"; + + /// *.hdf + public static readonly string _hdf = "application/x-hdf"; + + /// *.hdml + public static readonly string _hdml = "text/x-hdml"; + + /// *.hhc + public static readonly string _hhc = "application/x-oleobject"; + + /// *.hhk + public static readonly string _hhk = "application/octet-stream"; + + /// *.hhp + public static readonly string _hhp = "application/octet-stream"; + + /// *.hlp + public static readonly string _hlp = "application/winhlp"; + + /// *.hpp + public static readonly string _hpp = "text/plain"; + + /// *.hqx + public static readonly string _hqx = "application/mac-binhex40"; + + /// *.hta + public static readonly string _hta = "application/hta"; + + /// *.htc + public static readonly string _htc = "text/x-component"; + + /// *.htm + public static readonly string _htm = "text/html"; + + /// *.html + public static readonly string _html = "text/html"; + + /// *.htt + public static readonly string _htt = "text/webviewhtml"; + + /// *.hxa + public static readonly string _hxa = "application/xml"; + + /// *.hxc + public static readonly string _hxc = "application/xml"; + + /// *.hxd + public static readonly string _hxd = "application/octet-stream"; + + /// *.hxe + public static readonly string _hxe = "application/xml"; + + /// *.hxf + public static readonly string _hxf = "application/xml"; + + /// *.hxh + public static readonly string _hxh = "application/octet-stream"; + + /// *.hxi + public static readonly string _hxi = "application/octet-stream"; + + /// *.hxk + public static readonly string _hxk = "application/xml"; + + /// *.hxq + public static readonly string _hxq = "application/octet-stream"; + + /// *.hxr + public static readonly string _hxr = "application/octet-stream"; + + /// *.hxs + public static readonly string _hxs = "application/octet-stream"; + + /// *.hxt + public static readonly string _hxt = "text/html"; + + /// *.hxv + public static readonly string _hxv = "application/xml"; + + /// *.hxw + public static readonly string _hxw = "application/octet-stream"; + + /// *.hxx + public static readonly string _hxx = "text/plain"; + + /// *.i + public static readonly string _i = "text/plain"; + + /// *.ico + public static readonly string _ico = "image/x-icon"; + + /// *.ics + public static readonly string _ics = "application/octet-stream"; + + /// *.idl + public static readonly string _idl = "text/plain"; + + /// *.ief + public static readonly string _ief = "image/ief"; + + /// *.iii + public static readonly string _iii = "application/x-iphone"; + + /// *.inc + public static readonly string _inc = "text/plain"; + + /// *.inf + public static readonly string _inf = "application/octet-stream"; + + /// *.ini + public static readonly string _ini = "text/plain"; + + /// *.inl + public static readonly string _inl = "text/plain"; + + /// *.ins + public static readonly string _ins = "application/x-internet-signup"; + + /// *.ipa + public static readonly string _ipa = "application/x-itunes-ipa"; + + /// *.ipg + public static readonly string _ipg = "application/x-itunes-ipg"; + + /// *.ipproj + public static readonly string _ipproj = "text/plain"; + + /// *.ipsw + public static readonly string _ipsw = "application/x-itunes-ipsw"; + + /// *.iqy + public static readonly string _iqy = "text/x-ms-iqy"; + + /// *.isp + public static readonly string _isp = "application/x-internet-signup"; + + /// *.ite + public static readonly string _ite = "application/x-itunes-ite"; + + /// *.itlp + public static readonly string _itlp = "application/x-itunes-itlp"; + + /// *.itms + public static readonly string _itms = "application/x-itunes-itms"; + + /// *.itpc + public static readonly string _itpc = "application/x-itunes-itpc"; + + /// *.IVF + public static readonly string _IVF = "video/x-ivf"; + + /// *.jar + public static readonly string _jar = "application/java-archive"; + + /// *.java + public static readonly string _java = "application/octet-stream"; + + /// *.jck + public static readonly string _jck = "application/liquidmotion"; + + /// *.jcz + public static readonly string _jcz = "application/liquidmotion"; + + /// *.jfif + public static readonly string _jfif = "image/pjpeg"; + + /// *.jnlp + public static readonly string _jnlp = "application/x-java-jnlp-file"; + + /// *.jpb + public static readonly string _jpb = "application/octet-stream"; + + /// *.jpe + public static readonly string _jpe = "image/jpeg"; + + /// *.jpeg + public static readonly string _jpeg = "image/jpeg"; + + /// *.jpg + public static readonly string _jpg = "image/jpeg"; + + /// *.js + public static readonly string _js = "application/javascript"; + + /// *.json + public static readonly string _json = "application/json"; + + /// *.jsx + public static readonly string _jsx = "text/jscript"; + + /// *.jsxbin + public static readonly string _jsxbin = "text/plain"; + + /// *.latex + public static readonly string _latex = "application/x-latex"; + + /// *.library-ms + public static readonly string _library_ms = "application/windows-library+xml"; + + /// *.lit + public static readonly string _lit = "application/x-ms-reader"; + + /// *.loadtest + public static readonly string _loadtest = "application/xml"; + + /// *.lpk + public static readonly string _lpk = "application/octet-stream"; + + /// *.lsf + public static readonly string _lsf = "video/x-la-asf"; + + /// *.lst + public static readonly string _lst = "text/plain"; + + /// *.lsx + public static readonly string _lsx = "video/x-la-asf"; + + /// *.lzh + public static readonly string _lzh = "application/octet-stream"; + + /// *.m13 + public static readonly string _m13 = "application/x-msmediaview"; + + /// *.m14 + public static readonly string _m14 = "application/x-msmediaview"; + + /// *.m1v + public static readonly string _m1v = "video/mpeg"; + + /// *.m2t + public static readonly string _m2t = "video/vnd.dlna.mpeg-tts"; + + /// *.m2ts + public static readonly string _m2ts = "video/vnd.dlna.mpeg-tts"; + + /// *.m2v + public static readonly string _m2v = "video/mpeg"; + + /// *.m3u + public static readonly string _m3u = "audio/x-mpegurl"; + + /// *.m3u8 + public static readonly string _m3u8 = "audio/x-mpegurl"; + + /// *.m4a + public static readonly string _m4a = "audio/m4a"; + + /// *.m4b + public static readonly string _m4b = "audio/m4b"; + + /// *.m4p + public static readonly string _m4p = "audio/m4p"; + + /// *.m4r + public static readonly string _m4r = "audio/x-m4r"; + + /// *.m4v + public static readonly string _m4v = "video/x-m4v"; + + /// *.mac + public static readonly string _mac = "image/x-macpaint"; + + /// *.mak + public static readonly string _mak = "text/plain"; + + /// *.man + public static readonly string _man = "application/x-troff-man"; + + /// *.manifest + public static readonly string _manifest = "application/x-ms-manifest"; + + /// *.map + public static readonly string _map = "text/plain"; + + /// *.master + public static readonly string _master = "application/xml"; + + /// *.mbox + public static readonly string _mbox = "application/mbox"; + + /// *.mda + public static readonly string _mda = "application/msaccess"; + + /// *.mdb + public static readonly string _mdb = "application/x-msaccess"; + + /// *.mde + public static readonly string _mde = "application/msaccess"; + + /// *.mdp + public static readonly string _mdp = "application/octet-stream"; + + /// *.me + public static readonly string _me = "application/x-troff-me"; + + /// *.mfp + public static readonly string _mfp = "application/x-shockwave-flash"; + + /// *.mht + public static readonly string _mht = "message/rfc822"; + + /// *.mhtml + public static readonly string _mhtml = "message/rfc822"; + + /// *.mid + public static readonly string _mid = "audio/mid"; + + /// *.midi + public static readonly string _midi = "audio/mid"; + + /// *.mix + public static readonly string _mix = "application/octet-stream"; + + /// *.mk + public static readonly string _mk = "text/plain"; + + /// *.mk3d + public static readonly string _mk3d = "video/x-matroska-3d"; + + /// *.mka + public static readonly string _mka = "audio/x-matroska"; + + /// *.mkv + public static readonly string _mkv = "video/x-matroska"; + + /// *.mmf + public static readonly string _mmf = "application/x-smaf"; + + /// *.mno + public static readonly string _mno = "text/xml"; + + /// *.mny + public static readonly string _mny = "application/x-msmoney"; + + /// *.mod + public static readonly string _mod = "video/mpeg"; + + /// *.mov + public static readonly string _mov = "video/quicktime"; + + /// *.movie + public static readonly string _movie = "video/x-sgi-movie"; + + /// *.mp2 + public static readonly string _mp2 = "video/mpeg"; + + /// *.mp2v + public static readonly string _mp2v = "video/mpeg"; + + /// *.mp3 + public static readonly string _mp3 = "audio/mpeg"; + + /// *.mp4 + public static readonly string _mp4 = "video/mp4"; + + /// *.mp4v + public static readonly string _mp4v = "video/mp4"; + + /// *.mpa + public static readonly string _mpa = "video/mpeg"; + + /// *.mpe + public static readonly string _mpe = "video/mpeg"; + + /// *.mpeg + public static readonly string _mpeg = "video/mpeg"; + + /// *.mpf + public static readonly string _mpf = "application/vnd.ms-mediapackage"; + + /// *.mpg + public static readonly string _mpg = "video/mpeg"; + + /// *.mpp + public static readonly string _mpp = "application/vnd.ms-project"; + + /// *.mpv2 + public static readonly string _mpv2 = "video/mpeg"; + + /// *.mqv + public static readonly string _mqv = "video/quicktime"; + + /// *.ms + public static readonly string _ms = "application/x-troff-ms"; + + /// *.msg + public static readonly string _msg = "application/vnd.ms-outlook"; + + /// *.msi + public static readonly string _msi = "application/octet-stream"; + + /// *.mso + public static readonly string _mso = "application/octet-stream"; + + /// *.mts + public static readonly string _mts = "video/vnd.dlna.mpeg-tts"; + + /// *.mtx + public static readonly string _mtx = "application/xml"; + + /// *.mvb + public static readonly string _mvb = "application/x-msmediaview"; + + /// *.mvc + public static readonly string _mvc = "application/x-miva-compiled"; + + /// *.mxp + public static readonly string _mxp = "application/x-mmxp"; + + /// *.nc + public static readonly string _nc = "application/x-netcdf"; + + /// *.nsc + public static readonly string _nsc = "video/x-ms-asf"; + + /// *.nws + public static readonly string _nws = "message/rfc822"; + + /// *.ocx + public static readonly string _ocx = "application/octet-stream"; + + /// *.oda + public static readonly string _oda = "application/oda"; + + /// *.odb + public static readonly string _odb = "application/vnd.oasis.opendocument.database"; + + /// *.odc + public static readonly string _odc = "application/vnd.oasis.opendocument.chart"; + + /// *.odf + public static readonly string _odf = "application/vnd.oasis.opendocument.formula"; + + /// *.odg + public static readonly string _odg = "application/vnd.oasis.opendocument.graphics"; + + /// *.odh + public static readonly string _odh = "text/plain"; + + /// *.odi + public static readonly string _odi = "application/vnd.oasis.opendocument.image"; + + /// *.odl + public static readonly string _odl = "text/plain"; + + /// *.odm + public static readonly string _odm = "application/vnd.oasis.opendocument.text-master"; + + /// *.odp + public static readonly string _odp = "application/vnd.oasis.opendocument.presentation"; + + /// *.ods + public static readonly string _ods = "application/vnd.oasis.opendocument.spreadsheet"; + + /// *.odt + public static readonly string _odt = "application/vnd.oasis.opendocument.text"; + + /// *.oga + public static readonly string _oga = "audio/ogg"; + + /// *.ogg + public static readonly string _ogg = "audio/ogg"; + + /// *.ogv + public static readonly string _ogv = "video/ogg"; + + /// *.ogx + public static readonly string _ogx = "application/ogg"; + + /// *.one + public static readonly string _one = "application/onenote"; + + /// *.onea + public static readonly string _onea = "application/onenote"; + + /// *.onepkg + public static readonly string _onepkg = "application/onenote"; + + /// *.onetmp + public static readonly string _onetmp = "application/onenote"; + + /// *.onetoc + public static readonly string _onetoc = "application/onenote"; + + /// *.onetoc2 + public static readonly string _onetoc2 = "application/onenote"; + + /// *.opus + public static readonly string _opus = "audio/ogg"; + + /// *.orderedtest + public static readonly string _orderedtest = "application/xml"; + + /// *.osdx + public static readonly string _osdx = "application/opensearchdescription+xml"; + + /// *.otf + public static readonly string _otf = "application/font-sfnt"; + + /// *.otg + public static readonly string _otg = "application/vnd.oasis.opendocument.graphics-template"; + + /// *.oth + public static readonly string _oth = "application/vnd.oasis.opendocument.text-web"; + + /// *.otp + public static readonly string _otp = "application/vnd.oasis.opendocument.presentation-template"; + + /// *.ots + public static readonly string _ots = "application/vnd.oasis.opendocument.spreadsheet-template"; + + /// *.ott + public static readonly string _ott = "application/vnd.oasis.opendocument.text-template"; + + /// *.oxt + public static readonly string _oxt = "application/vnd.openofficeorg.extension"; + + /// *.p10 + public static readonly string _p10 = "application/pkcs10"; + + /// *.p12 + public static readonly string _p12 = "application/x-pkcs12"; + + /// *.p7b + public static readonly string _p7b = "application/x-pkcs7-certificates"; + + /// *.p7c + public static readonly string _p7c = "application/pkcs7-mime"; + + /// *.p7m + public static readonly string _p7m = "application/pkcs7-mime"; + + /// *.p7r + public static readonly string _p7r = "application/x-pkcs7-certreqresp"; + + /// *.p7s + public static readonly string _p7s = "application/pkcs7-signature"; + + /// *.pbm + public static readonly string _pbm = "image/x-portable-bitmap"; + + /// *.pcast + public static readonly string _pcast = "application/x-podcast"; + + /// *.pct + public static readonly string _pct = "image/pict"; + + /// *.pcx + public static readonly string _pcx = "application/octet-stream"; + + /// *.pcz + public static readonly string _pcz = "application/octet-stream"; + + /// *.pdf + public static readonly string _pdf = "application/pdf"; + + /// *.pfb + public static readonly string _pfb = "application/octet-stream"; + + /// *.pfm + public static readonly string _pfm = "application/octet-stream"; + + /// *.pfx + public static readonly string _pfx = "application/x-pkcs12"; + + /// *.pgm + public static readonly string _pgm = "image/x-portable-graymap"; + + /// *.pic + public static readonly string _pic = "image/pict"; + + /// *.pict + public static readonly string _pict = "image/pict"; + + /// *.pkgdef + public static readonly string _pkgdef = "text/plain"; + + /// *.pkgundef + public static readonly string _pkgundef = "text/plain"; + + /// *.pko + public static readonly string _pko = "application/vnd.ms-pki.pko"; + + /// *.pls + public static readonly string _pls = "audio/scpls"; + + /// *.pma + public static readonly string _pma = "application/x-perfmon"; + + /// *.pmc + public static readonly string _pmc = "application/x-perfmon"; + + /// *.pml + public static readonly string _pml = "application/x-perfmon"; + + /// *.pmr + public static readonly string _pmr = "application/x-perfmon"; + + /// *.pmw + public static readonly string _pmw = "application/x-perfmon"; + + /// *.png + public static readonly string _png = "image/png"; + + /// *.pnm + public static readonly string _pnm = "image/x-portable-anymap"; + + /// *.pnt + public static readonly string _pnt = "image/x-macpaint"; + + /// *.pntg + public static readonly string _pntg = "image/x-macpaint"; + + /// *.pnz + public static readonly string _pnz = "image/png"; + + /// *.pot + public static readonly string _pot = "application/vnd.ms-powerpoint"; + + /// *.potm + public static readonly string _potm = "application/vnd.ms-powerpoint.template.macroEnabled.12"; + + /// *.potx + public static readonly string _potx = "application/vnd.openxmlformats-officedocument.presentationml.template"; + + /// *.ppa + public static readonly string _ppa = "application/vnd.ms-powerpoint"; + + /// *.ppam + public static readonly string _ppam = "application/vnd.ms-powerpoint.addin.macroEnabled.12"; + + /// *.ppm + public static readonly string _ppm = "image/x-portable-pixmap"; + + /// *.pps + public static readonly string _pps = "application/vnd.ms-powerpoint"; + + /// *.ppsm + public static readonly string _ppsm = "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"; + + /// *.ppsx + public static readonly string _ppsx = "application/vnd.openxmlformats-officedocument.presentationml.slideshow"; + + /// *.ppt + public static readonly string _ppt = "application/vnd.ms-powerpoint"; + + /// *.pptm + public static readonly string _pptm = "application/vnd.ms-powerpoint.presentation.macroEnabled.12"; + + /// *.pptx + public static readonly string _pptx = "application/vnd.openxmlformats-officedocument.presentationml.presentation"; + + /// *.prf + public static readonly string _prf = "application/pics-rules"; + + /// *.prm + public static readonly string _prm = "application/octet-stream"; + + /// *.prx + public static readonly string _prx = "application/octet-stream"; + + /// *.ps + public static readonly string _ps = "application/postscript"; + + /// *.psc1 + public static readonly string _psc1 = "application/PowerShell"; + + /// *.psd + public static readonly string _psd = "application/octet-stream"; + + /// *.psess + public static readonly string _psess = "application/xml"; + + /// *.psm + public static readonly string _psm = "application/octet-stream"; + + /// *.psp + public static readonly string _psp = "application/octet-stream"; + + /// *.pst + public static readonly string _pst = "application/vnd.ms-outlook"; + + /// *.pub + public static readonly string _pub = "application/x-mspublisher"; + + /// *.pwz + public static readonly string _pwz = "application/vnd.ms-powerpoint"; + + /// *.qht + public static readonly string _qht = "text/x-html-insertion"; + + /// *.qhtm + public static readonly string _qhtm = "text/x-html-insertion"; + + /// *.qt + public static readonly string _qt = "video/quicktime"; + + /// *.qti + public static readonly string _qti = "image/x-quicktime"; + + /// *.qtif + public static readonly string _qtif = "image/x-quicktime"; + + /// *.qtl + public static readonly string _qtl = "application/x-quicktimeplayer"; + + /// *.qxd + public static readonly string _qxd = "application/octet-stream"; + + /// *.ra + public static readonly string _ra = "audio/x-pn-realaudio"; + + /// *.ram + public static readonly string _ram = "audio/x-pn-realaudio"; + + /// *.rar + public static readonly string _rar = "application/x-rar-compressed"; + + /// *.ras + public static readonly string _ras = "image/x-cmu-raster"; + + /// *.rat + public static readonly string _rat = "application/rat-file"; + + /// *.rc + public static readonly string _rc = "text/plain"; + + /// *.rc2 + public static readonly string _rc2 = "text/plain"; + + /// *.rct + public static readonly string _rct = "text/plain"; + + /// *.rdlc + public static readonly string _rdlc = "application/xml"; + + /// *.reg + public static readonly string _reg = "text/plain"; + + /// *.resx + public static readonly string _resx = "application/xml"; + + /// *.rf + public static readonly string _rf = "image/vnd.rn-realflash"; + + /// *.rgb + public static readonly string _rgb = "image/x-rgb"; + + /// *.rgs + public static readonly string _rgs = "text/plain"; + + /// *.rm + public static readonly string _rm = "application/vnd.rn-realmedia"; + + /// *.rmi + public static readonly string _rmi = "audio/mid"; + + /// *.rmp + public static readonly string _rmp = "application/vnd.rn-rn_music_package"; + + /// *.roff + public static readonly string _roff = "application/x-troff"; + + /// *.rpm + public static readonly string _rpm = "audio/x-pn-realaudio-plugin"; + + /// *.rqy + public static readonly string _rqy = "text/x-ms-rqy"; + + /// *.rtf + public static readonly string _rtf = "application/rtf"; + + /// *.rtx + public static readonly string _rtx = "text/richtext"; + + /// *.rvt + public static readonly string _rvt = "application/octet-stream"; + + /// *.ruleset + public static readonly string _ruleset = "application/xml"; + + /// *.s + public static readonly string _s = "text/plain"; + + /// *.safariextz + public static readonly string _safariextz = "application/x-safari-safariextz"; + + /// *.scd + public static readonly string _scd = "application/x-msschedule"; + + /// *.scr + public static readonly string _scr = "text/plain"; + + /// *.sct + public static readonly string _sct = "text/scriptlet"; + + /// *.sd2 + public static readonly string _sd2 = "audio/x-sd2"; + + /// *.sdp + public static readonly string _sdp = "application/sdp"; + + /// *.sea + public static readonly string _sea = "application/octet-stream"; + + /// *.searchConnector-ms + public static readonly string _searchConnector_ms = "application/windows-search-connector+xml"; + + /// *.setpay + public static readonly string _setpay = "application/set-payment-initiation"; + + /// *.setreg + public static readonly string _setreg = "application/set-registration-initiation"; + + /// *.settings + public static readonly string _settings = "application/xml"; + + /// *.sgimb + public static readonly string _sgimb = "application/x-sgimb"; + + /// *.sgml + public static readonly string _sgml = "text/sgml"; + + /// *.sh + public static readonly string _sh = "application/x-sh"; + + /// *.shar + public static readonly string _shar = "application/x-shar"; + + /// *.shtml + public static readonly string _shtml = "text/html"; + + /// *.sit + public static readonly string _sit = "application/x-stuffit"; + + /// *.sitemap + public static readonly string _sitemap = "application/xml"; + + /// *.skin + public static readonly string _skin = "application/xml"; + + /// *.skp + public static readonly string _skp = "application/x-koan"; + + /// *.sldm + public static readonly string _sldm = "application/vnd.ms-powerpoint.slide.macroEnabled.12"; + + /// *.sldx + public static readonly string _sldx = "application/vnd.openxmlformats-officedocument.presentationml.slide"; + + /// *.slk + public static readonly string _slk = "application/vnd.ms-excel"; + + /// *.sln + public static readonly string _sln = "text/plain"; + + /// *.slupkg-ms + public static readonly string _slupkg_ms = "application/x-ms-license"; + + /// *.smd + public static readonly string _smd = "audio/x-smd"; + + /// *.smi + public static readonly string _smi = "application/octet-stream"; + + /// *.smx + public static readonly string _smx = "audio/x-smd"; + + /// *.smz + public static readonly string _smz = "audio/x-smd"; + + /// *.snd + public static readonly string _snd = "audio/basic"; + + /// *.snippet + public static readonly string _snippet = "application/xml"; + + /// *.snp + public static readonly string _snp = "application/octet-stream"; + + /// *.sol + public static readonly string _sol = "text/plain"; + + /// *.sor + public static readonly string _sor = "text/plain"; + + /// *.spc + public static readonly string _spc = "application/x-pkcs7-certificates"; + + /// *.spl + public static readonly string _spl = "application/futuresplash"; + + /// *.spx + public static readonly string _spx = "audio/ogg"; + + /// *.src + public static readonly string _src = "application/x-wais-source"; + + /// *.srf + public static readonly string _srf = "text/plain"; + + /// *.SSISDeploymentManifest + public static readonly string _SSISDeploymentManifest = "text/xml"; + + /// *.ssm + public static readonly string _ssm = "application/streamingmedia"; + + /// *.sst + public static readonly string _sst = "application/vnd.ms-pki.certstore"; + + /// *.stl + public static readonly string _stl = "application/vnd.ms-pki.stl"; + + /// *.sv4cpio + public static readonly string _sv4cpio = "application/x-sv4cpio"; + + /// *.sv4crc + public static readonly string _sv4crc = "application/x-sv4crc"; + + /// *.svc + public static readonly string _svc = "application/xml"; + + /// *.svg + public static readonly string _svg = "image/svg+xml"; + + /// *.swf + public static readonly string _swf = "application/x-shockwave-flash"; + + /// *.step + public static readonly string _step = "application/step"; + + /// *.stp + public static readonly string _stp = "application/step"; + + /// *.t + public static readonly string _t = "application/x-troff"; + + /// *.tar + public static readonly string _tar = "application/x-tar"; + + /// *.tcl + public static readonly string _tcl = "application/x-tcl"; + + /// *.testrunconfig + public static readonly string _testrunconfig = "application/xml"; + + /// *.testsettings + public static readonly string _testsettings = "application/xml"; + + /// *.tex + public static readonly string _tex = "application/x-tex"; + + /// *.texi + public static readonly string _texi = "application/x-texinfo"; + + /// *.texinfo + public static readonly string _texinfo = "application/x-texinfo"; + + /// *.tgz + public static readonly string _tgz = "application/x-compressed"; + + /// *.thmx + public static readonly string _thmx = "application/vnd.ms-officetheme"; + + /// *.thn + public static readonly string _thn = "application/octet-stream"; + + /// *.tif + public static readonly string _tif = "image/tiff"; + + /// *.tiff + public static readonly string _tiff = "image/tiff"; + + /// *.tlh + public static readonly string _tlh = "text/plain"; + + /// *.tli + public static readonly string _tli = "text/plain"; + + /// *.toc + public static readonly string _toc = "application/octet-stream"; + + /// *.tr + public static readonly string _tr = "application/x-troff"; + + /// *.trm + public static readonly string _trm = "application/x-msterminal"; + + /// *.trx + public static readonly string _trx = "application/xml"; + + /// *.ts + public static readonly string _ts = "video/vnd.dlna.mpeg-tts"; + + /// *.tsv + public static readonly string _tsv = "text/tab-separated-values"; + + /// *.ttf + public static readonly string _ttf = "application/font-sfnt"; + + /// *.tts + public static readonly string _tts = "video/vnd.dlna.mpeg-tts"; + + /// *.txt + public static readonly string _txt = "text/plain"; + + /// *.u32 + public static readonly string _u32 = "application/octet-stream"; + + /// *.uls + public static readonly string _uls = "text/iuls"; + + /// *.user + public static readonly string _user = "text/plain"; + + /// *.ustar + public static readonly string _ustar = "application/x-ustar"; + + /// *.vb + public static readonly string _vb = "text/plain"; + + /// *.vbdproj + public static readonly string _vbdproj = "text/plain"; + + /// *.vbk + public static readonly string _vbk = "video/mpeg"; + + /// *.vbproj + public static readonly string _vbproj = "text/plain"; + + /// *.vbs + public static readonly string _vbs = "text/vbscript"; + + /// *.vcf + public static readonly string _vcf = "text/x-vcard"; + + /// *.vcproj + public static readonly string _vcproj = "application/xml"; + + /// *.vcs + public static readonly string _vcs = "text/plain"; + + /// *.vcxproj + public static readonly string _vcxproj = "application/xml"; + + /// *.vddproj + public static readonly string _vddproj = "text/plain"; + + /// *.vdp + public static readonly string _vdp = "text/plain"; + + /// *.vdproj + public static readonly string _vdproj = "text/plain"; + + /// *.vdx + public static readonly string _vdx = "application/vnd.ms-visio.viewer"; + + /// *.vml + public static readonly string _vml = "text/xml"; + + /// *.vscontent + public static readonly string _vscontent = "application/xml"; + + /// *.vsct + public static readonly string _vsct = "text/xml"; + + /// *.vsd + public static readonly string _vsd = "application/vnd.visio"; + + /// *.vsi + public static readonly string _vsi = "application/ms-vsi"; + + /// *.vsix + public static readonly string _vsix = "application/vsix"; + + /// *.vsixlangpack + public static readonly string _vsixlangpack = "text/xml"; + + /// *.vsixmanifest + public static readonly string _vsixmanifest = "text/xml"; + + /// *.vsmdi + public static readonly string _vsmdi = "application/xml"; + + /// *.vspscc + public static readonly string _vspscc = "text/plain"; + + /// *.vss + public static readonly string _vss = "application/vnd.visio"; + + /// *.vsscc + public static readonly string _vsscc = "text/plain"; + + /// *.vssettings + public static readonly string _vssettings = "text/xml"; + + /// *.vssscc + public static readonly string _vssscc = "text/plain"; + + /// *.vst + public static readonly string _vst = "application/vnd.visio"; + + /// *.vstemplate + public static readonly string _vstemplate = "text/xml"; + + /// *.vsto + public static readonly string _vsto = "application/x-ms-vsto"; + + /// *.vsw + public static readonly string _vsw = "application/vnd.visio"; + + /// *.vsx + public static readonly string _vsx = "application/vnd.visio"; + + /// *.vtt + public static readonly string _vtt = "text/vtt"; + + /// *.vtx + public static readonly string _vtx = "application/vnd.visio"; + + /// *.wasm + public static readonly string _wasm = "application/wasm"; + + /// *.wav + public static readonly string _wav = "audio/wav"; + + /// *.wave + public static readonly string _wave = "audio/wav"; + + /// *.wax + public static readonly string _wax = "audio/x-ms-wax"; + + /// *.wbk + public static readonly string _wbk = "application/msword"; + + /// *.wbmp + public static readonly string _wbmp = "image/vnd.wap.wbmp"; + + /// *.wcm + public static readonly string _wcm = "application/vnd.ms-works"; + + /// *.wdb + public static readonly string _wdb = "application/vnd.ms-works"; + + /// *.wdp + public static readonly string _wdp = "image/vnd.ms-photo"; + + /// *.webarchive + public static readonly string _webarchive = "application/x-safari-webarchive"; + + /// *.webm + public static readonly string _webm = "video/webm"; + + /// *.webp + public static readonly string _webp = "image/webp"; /* https://en.wikipedia.org/wiki/WebP */ + + /// *.webtest + public static readonly string _webtest = "application/xml"; + + /// *.wiq + public static readonly string _wiq = "application/xml"; + + /// *.wiz + public static readonly string _wiz = "application/msword"; + + /// *.wks + public static readonly string _wks = "application/vnd.ms-works"; + + /// *.WLMP + public static readonly string _WLMP = "application/wlmoviemaker"; + + /// *.wlpginstall + public static readonly string _wlpginstall = "application/x-wlpg-detect"; + + /// *.wlpginstall3 + public static readonly string _wlpginstall3 = "application/x-wlpg3-detect"; + + /// *.wm + public static readonly string _wm = "video/x-ms-wm"; + + /// *.wma + public static readonly string _wma = "audio/x-ms-wma"; + + /// *.wmd + public static readonly string _wmd = "application/x-ms-wmd"; + + /// *.wmf + public static readonly string _wmf = "application/x-msmetafile"; + + /// *.wml + public static readonly string _wml = "text/vnd.wap.wml"; + + /// *.wmlc + public static readonly string _wmlc = "application/vnd.wap.wmlc"; + + /// *.wmls + public static readonly string _wmls = "text/vnd.wap.wmlscript"; + + /// *.wmlsc + public static readonly string _wmlsc = "application/vnd.wap.wmlscriptc"; + + /// *.wmp + public static readonly string _wmp = "video/x-ms-wmp"; + + /// *.wmv + public static readonly string _wmv = "video/x-ms-wmv"; + + /// *.wmx + public static readonly string _wmx = "video/x-ms-wmx"; + + /// *.wmz + public static readonly string _wmz = "application/x-ms-wmz"; + + /// *.woff + public static readonly string _woff = "application/font-woff"; + + /// *.woff2 + public static readonly string _woff2 = "application/font-woff2"; + + /// *.wpl + public static readonly string _wpl = "application/vnd.ms-wpl"; + + /// *.wps + public static readonly string _wps = "application/vnd.ms-works"; + + /// *.wri + public static readonly string _wri = "application/x-mswrite"; + + /// *.wrl + public static readonly string _wrl = "x-world/x-vrml"; + + /// *.wrz + public static readonly string _wrz = "x-world/x-vrml"; + + /// *.wsc + public static readonly string _wsc = "text/scriptlet"; + + /// *.wsdl + public static readonly string _wsdl = "text/xml"; + + /// *.wvx + public static readonly string _wvx = "video/x-ms-wvx"; + + /// *.x + public static readonly string _x = "application/directx"; + + /// *.xaf + public static readonly string _xaf = "x-world/x-vrml"; + + /// *.xaml + public static readonly string _xaml = "application/xaml+xml"; + + /// *.xap + public static readonly string _xap = "application/x-silverlight-app"; + + /// *.xbap + public static readonly string _xbap = "application/x-ms-xbap"; + + /// *.xbm + public static readonly string _xbm = "image/x-xbitmap"; + + /// *.xdr + public static readonly string _xdr = "text/plain"; + + /// *.xht + public static readonly string _xht = "application/xhtml+xml"; + + /// *.xhtml + public static readonly string _xhtml = "application/xhtml+xml"; + + /// *.xla + public static readonly string _xla = "application/vnd.ms-excel"; + + /// *.xlam + public static readonly string _xlam = "application/vnd.ms-excel.addin.macroEnabled.12"; + + /// *.xlc + public static readonly string _xlc = "application/vnd.ms-excel"; + + /// *.xld + public static readonly string _xld = "application/vnd.ms-excel"; + + /// *.xlk + public static readonly string _xlk = "application/vnd.ms-excel"; + + /// *.xll + public static readonly string _xll = "application/vnd.ms-excel"; + + /// *.xlm + public static readonly string _xlm = "application/vnd.ms-excel"; + + /// *.xls + public static readonly string _xls = "application/vnd.ms-excel"; + + /// *.xlsb + public static readonly string _xlsb = "application/vnd.ms-excel.sheet.binary.macroEnabled.12"; + + /// *.xlsm + public static readonly string _xlsm = "application/vnd.ms-excel.sheet.macroEnabled.12"; + + /// *.xlsx + public static readonly string _xlsx = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; + + /// *.xlt + public static readonly string _xlt = "application/vnd.ms-excel"; + + /// *.xltm + public static readonly string _xltm = "application/vnd.ms-excel.template.macroEnabled.12"; + + /// *.xltx + public static readonly string _xltx = "application/vnd.openxmlformats-officedocument.spreadsheetml.template"; + + /// *.xlw + public static readonly string _xlw = "application/vnd.ms-excel"; + + /// *.xml + public static readonly string _xml = "text/xml"; + + /// *.xmp + public static readonly string _xmp = "application/octet-stream"; + + /// *.xmta + public static readonly string _xmta = "application/xml"; + + /// *.xof + public static readonly string _xof = "x-world/x-vrml"; + + /// *.XOML + public static readonly string _XOML = "text/plain"; + + /// *.xpm + public static readonly string _xpm = "image/x-xpixmap"; + + /// *.xps + public static readonly string _xps = "application/vnd.ms-xpsdocument"; + + /// *.xrm-ms + public static readonly string _xrm_ms = "text/xml"; + + /// *.xsc + public static readonly string _xsc = "application/xml"; + + /// *.xsd + public static readonly string _xsd = "text/xml"; + + /// *.xsf + public static readonly string _xsf = "text/xml"; + + /// *.xsl + public static readonly string _xsl = "text/xml"; + + /// *.xslt + public static readonly string _xslt = "text/xml"; + + /// *.xsn + public static readonly string _xsn = "application/octet-stream"; + + /// *.xss + public static readonly string _xss = "application/xml"; + + /// *.xspf + public static readonly string _xspf = "application/xspf+xml"; + + /// *.xtp + public static readonly string _xtp = "application/octet-stream"; + + /// *.xwd + public static readonly string _xwd = "image/x-xwindowdump"; + + /// *.z + public static readonly string _z = "application/x-compress"; + + /// *.zip + public static readonly string _zip = "application/zip"; + } +} \ No newline at end of file diff --git a/MimeTypeList/MimeTypeList/ImageMimeType.cs b/MimeTypeList/MimeTypeList/ImageMimeType.cs new file mode 100644 index 0000000..7bd0dfe --- /dev/null +++ b/MimeTypeList/MimeTypeList/ImageMimeType.cs @@ -0,0 +1,38 @@ +namespace MimeTypeList.MimeTypeNamespaces +{ + /// Image mime type namespace. + public class ImageMimeType + { + /// image/bmp + public readonly string bmp = ".bmp"; + + /// image/jpeg + public readonly string jpeg = ".jpg"; + + /// image/pict + public readonly string pict = ".pic"; + + /// image/png + /// Defined in [RFC-2045], [RFC-2048] + public readonly string png = ".png"; + + /// image/x-png + /// See https://www.w3.org/TR/PNG/#A-Media-type :"It is recommended that implementations also recognize the media type "image/x-png"." + public readonly string x_png = ".png"; + + /// image/tiff + public readonly string tiff = ".tiff"; + + /// image/x-macpaint + public readonly string x_macpaint = ".mac"; + + /// image/x-quicktime + public readonly string x_quicktime = ".qti"; + + /// Internal default constructor. + internal ImageMimeType() + { + // + } + } +} \ No newline at end of file diff --git a/MimeTypeList/MimeTypeList/MessageMimeType.cs b/MimeTypeList/MimeTypeList/MessageMimeType.cs new file mode 100644 index 0000000..2a873ec --- /dev/null +++ b/MimeTypeList/MimeTypeList/MessageMimeType.cs @@ -0,0 +1,15 @@ +namespace MimeTypeList.MimeTypeNamespaces +{ + /// Message mime type namespace. + public class MessageMimeType + { + /// message/rfc822 + public readonly string rfc822 = ".eml"; + + /// Default constructor. + internal MessageMimeType() + { + // + } + } +} \ No newline at end of file diff --git a/MimeTypeList/MimeTypeList/MimeTypeList.csproj b/MimeTypeList/MimeTypeList/MimeTypeList.csproj new file mode 100644 index 0000000..50af3c3 --- /dev/null +++ b/MimeTypeList/MimeTypeList/MimeTypeList.csproj @@ -0,0 +1,19 @@ + + + + netstandard2.0 + true + https://github.com/wagesj45/MimeTypeList/blob/master/LICENSE + true + Jordan Wages + + Provides a hard-coded collection of file extension and mime type mapping. This project was inspired by samuelneff/MimeTypeMap. This project uses the data from that project to create classes with members for each extension and mime type for lookups. + https://github.com/wagesj45/MimeTypeList + mime type file files + + + + C:\Users\wages\Documents\GitHub\MimeTypeList\MimeTypeList\MimeTypeList\MimeTypeList.xml + + + diff --git a/MimeTypeList/MimeTypeList/MimeTypeList.xml b/MimeTypeList/MimeTypeList/MimeTypeList.xml new file mode 100644 index 0000000..2819bf3 --- /dev/null +++ b/MimeTypeList/MimeTypeList/MimeTypeList.xml @@ -0,0 +1,2053 @@ + + + + MimeTypeList + + + + Application mime type namespace. + + + application/fsharp-script + + + application/msaccess + + + application/msword + + + application/octet-stream + + + application/onenote + + + application/postscript + + + application/step + + + application/vnd.ms-excel + + + application/vnd.ms-powerpoint + + + application/vnd.ms-works + + + application/vnd.visio + + + application/x-director + + + application/x-shockwave-flash + + + application/x-x509-ca-cert + + + application/x-zip-compressed + + + application/xhtml+xml + + + application/xml + + + Internal default constructor. + + + Audio mime type namespace. + + + audio/aac + + + audio/aiff + + + audio/basic + + + audio/mid + + + audio/wav + + + audio/x-m4a + + + audio/x-mpegurl + + + audio/x-pn-realaudio + + + audio/x-smd + + + Default constructor. + + + Image mime type namespace. + + + image/bmp + + + image/jpeg + + + image/pict + + + image/png + Defined in [RFC-2045], [RFC-2048] + + + image/x-png + See https://www.w3.org/TR/PNG/#A-Media-type :"It is recommended that implementations also recognize the media type "image/x-png"." + + + image/tiff + + + image/x-macpaint + + + image/x-quicktime + + + Internal default constructor. + + + Message mime type namespace. + + + message/rfc822 + + + Default constructor. + + + Text mime type namespace. + + + text/html + + + text/plain + + + text/scriptlet + + + text/xml + + + Internal default constructor. + + + Video mime type namespace. + + + video/3gpp + + + video/3gpp2 + + + video/mp4 + + + video/mpeg + + + video/quicktime + + + video/vnd.dlna.mpeg-tts + + + video/x-dv + + + video/x-la-asf + + + video/x-ms-asf + + + Internal default constructor. + + + X-World mime type namespace. + + + x-world/x-vrml + + + Internal default constructor. + + + A list of mime types referenced by extension. + + + *.3gp2 + + + *.3gpp + + + *.7z + + + *.aa + + + *.AAC + + + *.aaf + + + *.aax + + + *.ac3 + + + *.aca + + + *.accda + + + *.accdb + + + *.accdc + + + *.accde + + + *.accdr + + + *.accdt + + + *.accdw + + + *.accft + + + *.acx + + + *.AddIn + + + *.ade + + + *.adobebridge + + + *.adp + + + *.ADT + + + *.ADTS + + + *.afm + + + *.ai + + + *.aif + + + *.aifc + + + *.aiff + + + *.air + + + *.amc + + + *.anx + + + *.apk + + + *.application + + + *.art + + + *.asa + + + *.asax + + + *.ascx + + + *.asd + + + *.asf + + + *.ashx + + + *.asi + + + *.asm + + + *.asmx + + + *.aspx + + + *.asr + + + *.asx + + + *.atom + + + *.au + + + *.avi + + + *.axa + + + *.axs + + + *.axv + + + *.bas + + + *.bcpio + + + *.bin + + + *.bmp + + + *.c + + + *.cab + + + *.caf + + + *.calx + + + *.cat + + + *.cc + + + *.cd + + + *.cdda + + + *.cdf + + + *.cer + + + *.cfg + + + *.chm + + + *.class + + + *.clp + + + *.cmd + + + *.cmx + + + *.cnf + + + *.cod + + + *.config + + + *.contact + + + *.coverage + + + *.cpio + + + *.cpp + + + *.crd + + + *.crl + + + *.crt + + + *.cs + + + *.csdproj + + + *.csh + + + *.csproj + + + *.css + + + *.csv + + + *.cur + + + *.cxx + + + *.dat + + + *.datasource + + + *.dbproj + + + *.dcr + + + *.def + + + *.deploy + + + *.der + + + *.dgml + + + *.dib + + + *.dif + + + *.dir + + + *.disco + + + *.divx + + + *.dll + + + *.dll.config + + + *.dlm + + + *.doc + + + *.docm + + + *.docx + + + *.dot + + + *.dotm + + + *.dotx + + + *.dsp + + + *.dsw + + + *.dtd + + + *.dtsConfig + + + *.dv + + + *.dvi + + + *.dwf + + + *.dwg + + + *.dwp + + + *.dxf + + + *.dxr + + + *.eml + + + *.emz + + + *.eot + + + *.eps + + + *.es + + + *.etl + + + *.etx + + + *.evy + + + *.exe + + + *.exe.config + + + *.fdf + + + *.fif + + + *.filters + + + *.fla + + + *.flac + + + *.flr + + + *.flv + + + *.fsscript + + + *.fsx + + + *.generictest + + + *.gif + + + *.gpx + + + *.group + + + *.gsm + + + *.gtar + + + *.gz + + + *.h + + + *.hdf + + + *.hdml + + + *.hhc + + + *.hhk + + + *.hhp + + + *.hlp + + + *.hpp + + + *.hqx + + + *.hta + + + *.htc + + + *.htm + + + *.html + + + *.htt + + + *.hxa + + + *.hxc + + + *.hxd + + + *.hxe + + + *.hxf + + + *.hxh + + + *.hxi + + + *.hxk + + + *.hxq + + + *.hxr + + + *.hxs + + + *.hxt + + + *.hxv + + + *.hxw + + + *.hxx + + + *.i + + + *.ico + + + *.ics + + + *.idl + + + *.ief + + + *.iii + + + *.inc + + + *.inf + + + *.ini + + + *.inl + + + *.ins + + + *.ipa + + + *.ipg + + + *.ipproj + + + *.ipsw + + + *.iqy + + + *.isp + + + *.ite + + + *.itlp + + + *.itms + + + *.itpc + + + *.IVF + + + *.jar + + + *.java + + + *.jck + + + *.jcz + + + *.jfif + + + *.jnlp + + + *.jpb + + + *.jpe + + + *.jpeg + + + *.jpg + + + *.js + + + *.json + + + *.jsx + + + *.jsxbin + + + *.latex + + + *.library-ms + + + *.lit + + + *.loadtest + + + *.lpk + + + *.lsf + + + *.lst + + + *.lsx + + + *.lzh + + + *.m13 + + + *.m14 + + + *.m1v + + + *.m2t + + + *.m2ts + + + *.m2v + + + *.m3u + + + *.m3u8 + + + *.m4a + + + *.m4b + + + *.m4p + + + *.m4r + + + *.m4v + + + *.mac + + + *.mak + + + *.man + + + *.manifest + + + *.map + + + *.master + + + *.mbox + + + *.mda + + + *.mdb + + + *.mde + + + *.mdp + + + *.me + + + *.mfp + + + *.mht + + + *.mhtml + + + *.mid + + + *.midi + + + *.mix + + + *.mk + + + *.mk3d + + + *.mka + + + *.mkv + + + *.mmf + + + *.mno + + + *.mny + + + *.mod + + + *.mov + + + *.movie + + + *.mp2 + + + *.mp2v + + + *.mp3 + + + *.mp4 + + + *.mp4v + + + *.mpa + + + *.mpe + + + *.mpeg + + + *.mpf + + + *.mpg + + + *.mpp + + + *.mpv2 + + + *.mqv + + + *.ms + + + *.msg + + + *.msi + + + *.mso + + + *.mts + + + *.mtx + + + *.mvb + + + *.mvc + + + *.mxp + + + *.nc + + + *.nsc + + + *.nws + + + *.ocx + + + *.oda + + + *.odb + + + *.odc + + + *.odf + + + *.odg + + + *.odh + + + *.odi + + + *.odl + + + *.odm + + + *.odp + + + *.ods + + + *.odt + + + *.oga + + + *.ogg + + + *.ogv + + + *.ogx + + + *.one + + + *.onea + + + *.onepkg + + + *.onetmp + + + *.onetoc + + + *.onetoc2 + + + *.opus + + + *.orderedtest + + + *.osdx + + + *.otf + + + *.otg + + + *.oth + + + *.otp + + + *.ots + + + *.ott + + + *.oxt + + + *.p10 + + + *.p12 + + + *.p7b + + + *.p7c + + + *.p7m + + + *.p7r + + + *.p7s + + + *.pbm + + + *.pcast + + + *.pct + + + *.pcx + + + *.pcz + + + *.pdf + + + *.pfb + + + *.pfm + + + *.pfx + + + *.pgm + + + *.pic + + + *.pict + + + *.pkgdef + + + *.pkgundef + + + *.pko + + + *.pls + + + *.pma + + + *.pmc + + + *.pml + + + *.pmr + + + *.pmw + + + *.png + + + *.pnm + + + *.pnt + + + *.pntg + + + *.pnz + + + *.pot + + + *.potm + + + *.potx + + + *.ppa + + + *.ppam + + + *.ppm + + + *.pps + + + *.ppsm + + + *.ppsx + + + *.ppt + + + *.pptm + + + *.pptx + + + *.prf + + + *.prm + + + *.prx + + + *.ps + + + *.psc1 + + + *.psd + + + *.psess + + + *.psm + + + *.psp + + + *.pst + + + *.pub + + + *.pwz + + + *.qht + + + *.qhtm + + + *.qt + + + *.qti + + + *.qtif + + + *.qtl + + + *.qxd + + + *.ra + + + *.ram + + + *.rar + + + *.ras + + + *.rat + + + *.rc + + + *.rc2 + + + *.rct + + + *.rdlc + + + *.reg + + + *.resx + + + *.rf + + + *.rgb + + + *.rgs + + + *.rm + + + *.rmi + + + *.rmp + + + *.roff + + + *.rpm + + + *.rqy + + + *.rtf + + + *.rtx + + + *.rvt + + + *.ruleset + + + *.s + + + *.safariextz + + + *.scd + + + *.scr + + + *.sct + + + *.sd2 + + + *.sdp + + + *.sea + + + *.searchConnector-ms + + + *.setpay + + + *.setreg + + + *.settings + + + *.sgimb + + + *.sgml + + + *.sh + + + *.shar + + + *.shtml + + + *.sit + + + *.sitemap + + + *.skin + + + *.skp + + + *.sldm + + + *.sldx + + + *.slk + + + *.sln + + + *.slupkg-ms + + + *.smd + + + *.smi + + + *.smx + + + *.smz + + + *.snd + + + *.snippet + + + *.snp + + + *.sol + + + *.sor + + + *.spc + + + *.spl + + + *.spx + + + *.src + + + *.srf + + + *.SSISDeploymentManifest + + + *.ssm + + + *.sst + + + *.stl + + + *.sv4cpio + + + *.sv4crc + + + *.svc + + + *.svg + + + *.swf + + + *.step + + + *.stp + + + *.t + + + *.tar + + + *.tcl + + + *.testrunconfig + + + *.testsettings + + + *.tex + + + *.texi + + + *.texinfo + + + *.tgz + + + *.thmx + + + *.thn + + + *.tif + + + *.tiff + + + *.tlh + + + *.tli + + + *.toc + + + *.tr + + + *.trm + + + *.trx + + + *.ts + + + *.tsv + + + *.ttf + + + *.tts + + + *.txt + + + *.u32 + + + *.uls + + + *.user + + + *.ustar + + + *.vb + + + *.vbdproj + + + *.vbk + + + *.vbproj + + + *.vbs + + + *.vcf + + + *.vcproj + + + *.vcs + + + *.vcxproj + + + *.vddproj + + + *.vdp + + + *.vdproj + + + *.vdx + + + *.vml + + + *.vscontent + + + *.vsct + + + *.vsd + + + *.vsi + + + *.vsix + + + *.vsixlangpack + + + *.vsixmanifest + + + *.vsmdi + + + *.vspscc + + + *.vss + + + *.vsscc + + + *.vssettings + + + *.vssscc + + + *.vst + + + *.vstemplate + + + *.vsto + + + *.vsw + + + *.vsx + + + *.vtt + + + *.vtx + + + *.wasm + + + *.wav + + + *.wave + + + *.wax + + + *.wbk + + + *.wbmp + + + *.wcm + + + *.wdb + + + *.wdp + + + *.webarchive + + + *.webm + + + *.webp + + + *.webtest + + + *.wiq + + + *.wiz + + + *.wks + + + *.WLMP + + + *.wlpginstall + + + *.wlpginstall3 + + + *.wm + + + *.wma + + + *.wmd + + + *.wmf + + + *.wml + + + *.wmlc + + + *.wmls + + + *.wmlsc + + + *.wmp + + + *.wmv + + + *.wmx + + + *.wmz + + + *.woff + + + *.woff2 + + + *.wpl + + + *.wps + + + *.wri + + + *.wrl + + + *.wrz + + + *.wsc + + + *.wsdl + + + *.wvx + + + *.x + + + *.xaf + + + *.xaml + + + *.xap + + + *.xbap + + + *.xbm + + + *.xdr + + + *.xht + + + *.xhtml + + + *.xla + + + *.xlam + + + *.xlc + + + *.xld + + + *.xlk + + + *.xll + + + *.xlm + + + *.xls + + + *.xlsb + + + *.xlsm + + + *.xlsx + + + *.xlt + + + *.xltm + + + *.xltx + + + *.xlw + + + *.xml + + + *.xmp + + + *.xmta + + + *.xof + + + *.XOML + + + *.xpm + + + *.xps + + + *.xrm-ms + + + *.xsc + + + *.xsd + + + *.xsf + + + *.xsl + + + *.xslt + + + *.xsn + + + *.xss + + + *.xspf + + + *.xtp + + + *.xwd + + + *.z + + + *.zip + + + A list of mime types organized by namespace. + + + Application mime type namespace. + + + Audio mime type namespace. + + + Image mime type namespace. + + + Message mime type namespace. + + + Text mime type namespace. + + + Video mime type namespace. + + + X-World mime type namespace. + + + diff --git a/MimeTypeList/MimeTypeList/MimeTypes.cs b/MimeTypeList/MimeTypeList/MimeTypes.cs new file mode 100644 index 0000000..f600fdd --- /dev/null +++ b/MimeTypeList/MimeTypeList/MimeTypes.cs @@ -0,0 +1,22 @@ +using MimeTypeList.MimeTypeNamespaces; +namespace MimeTypeList +{ + /// A list of mime types organized by namespace. + public static class MimeTypes + { + /// Application mime type namespace. + public static readonly ApplicationMimeType application = new ApplicationMimeType(); + /// Audio mime type namespace. + public static readonly AudioMimeType audio = new AudioMimeType(); + /// Image mime type namespace. + public static readonly ImageMimeType image = new ImageMimeType(); + /// Message mime type namespace. + public static readonly MessageMimeType message = new MessageMimeType(); + /// Text mime type namespace. + public static readonly TextMimeType text = new TextMimeType(); + /// Video mime type namespace. + public static readonly VideoMimeType video = new VideoMimeType(); + /// X-World mime type namespace. + public static readonly XWorldMimeType x_world = new XWorldMimeType(); + } +} \ No newline at end of file diff --git a/MimeTypeList/MimeTypeList/TextMimeType.cs b/MimeTypeList/MimeTypeList/TextMimeType.cs new file mode 100644 index 0000000..2db88ed --- /dev/null +++ b/MimeTypeList/MimeTypeList/TextMimeType.cs @@ -0,0 +1,24 @@ +namespace MimeTypeList.MimeTypeNamespaces +{ + /// Text mime type namespace. + public class TextMimeType + { + /// text/html + public readonly string html = ".html"; + + /// text/plain + public readonly string plain = ".txt"; + + /// text/scriptlet + public readonly string scriptlet = ".wsc"; + + /// text/xml + public readonly string xml = ".xml"; + + /// Internal default constructor. + internal TextMimeType() + { + // + } + } +} \ No newline at end of file diff --git a/MimeTypeList/MimeTypeList/VideoMimeType.cs b/MimeTypeList/MimeTypeList/VideoMimeType.cs new file mode 100644 index 0000000..430cf76 --- /dev/null +++ b/MimeTypeList/MimeTypeList/VideoMimeType.cs @@ -0,0 +1,39 @@ +namespace MimeTypeList.MimeTypeNamespaces +{ + /// Video mime type namespace. + public class VideoMimeType + { + /// video/3gpp + public readonly string _3gpp = ".3gp"; + + /// video/3gpp2 + public readonly string _3gpp2 = ".3gp2"; + + /// video/mp4 + public readonly string mp4 = ".mp4"; + + /// video/mpeg + public readonly string mpeg = ".mpg"; + + /// video/quicktime + public readonly string quicktime = ".mov"; + + /// video/vnd.dlna.mpeg-tts + public readonly string vnd_dlna_mpeg_tts = ".m2t"; + + /// video/x-dv + public readonly string x_dv = ".dv"; + + /// video/x-la-asf + public readonly string x_la_asf = ".lsf"; + + /// video/x-ms-asf + public readonly string x_ms_asf = ".asf"; + + /// Internal default constructor. + internal VideoMimeType() + { + // + } + } +} \ No newline at end of file diff --git a/MimeTypeList/MimeTypeList/XWorldMimeType.cs b/MimeTypeList/MimeTypeList/XWorldMimeType.cs new file mode 100644 index 0000000..6712d97 --- /dev/null +++ b/MimeTypeList/MimeTypeList/XWorldMimeType.cs @@ -0,0 +1,15 @@ +namespace MimeTypeList.MimeTypeNamespaces +{ + /// X-World mime type namespace. + public class XWorldMimeType + { + /// x-world/x-vrml + public readonly string x_vrml = ".xof"; + + /// Internal default constructor. + internal XWorldMimeType() + { + // + } + } +} \ No newline at end of file