■ MIME 타입 딕셔너리를 구하는 방법을 보여준다. (.NET 프레임워크 MimeMappings 클래스 소스 코드 기준)
▶ MIMETypeHelper.cs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 |
namespace TestProject; /// <summary> /// MIME 타입 헬퍼 /// </summary> public class MIMETypeHelper { //////////////////////////////////////////////////////////////////////////////////////////////////// Field ////////////////////////////////////////////////////////////////////////////////////////// Static //////////////////////////////////////////////////////////////////////////////// Private #region Field /// <summary> /// 알려진 타입 리스트 /// </summary> private static List<string> _knownTypeList; /// <summary> /// MIME 타입 딕셔너리 /// </summary> private static Dictionary<string, string> _mimeTypeDictionary; #endregion //////////////////////////////////////////////////////////////////////////////////////////////////// Property ////////////////////////////////////////////////////////////////////////////////////////// Static //////////////////////////////////////////////////////////////////////////////// Public #region 알려진 타입 리스트 - KnownTypeList /// <summary> /// 알려진 타입 리스트 /// </summary> public static List<string> KnownTypeList { get { return _knownTypeList; } } #endregion #region MIME 타입 딕셔너리 - MIMETypeDictionary /// <summary> /// MIME 타입 딕셔너리 /// </summary> public static Dictionary<string, string> MIMETypeDictionary { get { return _mimeTypeDictionary; } } #endregion //////////////////////////////////////////////////////////////////////////////////////////////////// Constructor ////////////////////////////////////////////////////////////////////////////////////////// Static #region 생성자 - MIMETypeHelper() /// <summary> /// 생성자 /// </summary> static MIMETypeHelper() { Initialize(); } #endregion //////////////////////////////////////////////////////////////////////////////////////////////////// Method ////////////////////////////////////////////////////////////////////////////////////////// Static //////////////////////////////////////////////////////////////////////////////// Public #region 초기화하기 - Initialize() /// <summary> /// 초기화하기 /// </summary> private static void Initialize() { _knownTypeList = new string[] { "application/atom+xml", "application/directx", "application/envoy", "application/fractals", "application/futuresplash", "application/hta", "application/internet-property-stream", "application/java-archive", "application/liquidmotion", "application/mac-binhex40", "application/msaccess", "application/msword", "application/octet-stream", "application/oda", "application/oleobject", "application/olescript", "application/onenote", "application/opensearchdescription+xml", "application/pdf", "application/pics-rules", "application/pkcs10", "application/pkcs7-mime", "application/pkcs7-signature", "application/pkix-crl", "application/postscript", "application/rtf", "application/set-payment-initiation", "application/set-registration-initiation", "application/streamingmedia", "application/vnd.fdf", "application/vnd.ms-excel", "application/vnd.ms-excel.addin.macroEnabled.12", "application/vnd.ms-excel.sheet.binary.macroEnabled.12", "application/vnd.ms-excel.sheet.macroEnabled.12", "application/vnd.ms-excel.template.macroEnabled.12", "application/vnd.ms-office.calx", "application/vnd.ms-officetheme", "application/vnd.ms-pki.certstore", "application/vnd.ms-pki.pko", "application/vnd.ms-pki.seccat", "application/vnd.ms-pki.stl", "application/vnd.ms-powerpoint", "application/vnd.ms-powerpoint.addin.macroEnabled.12", "application/vnd.ms-powerpoint.presentation.macroEnabled.12", "application/vnd.ms-powerpoint.slide.macroEnabled.12", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12", "application/vnd.ms-powerpoint.template.macroEnabled.12", "application/vnd.ms-project", "application/vnd.ms-visio.viewer", "application/vnd.ms-word.document.macroEnabled.12", "application/vnd.ms-word.template.macroEnabled.12", "application/vnd.ms-works", "application/vnd.ms-xpsdocument", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "application/vnd.openxmlformats-officedocument.presentationml.slide", "application/vnd.openxmlformats-officedocument.presentationml.slideshow", "application/vnd.openxmlformats-officedocument.presentationml.template", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.openxmlformats-officedocument.spreadsheetml.template", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.wordprocessingml.template", "application/vnd.rn-realmedia", "application/vnd.visio", "application/vnd.wap.wmlc", "application/vnd.wap.wmlscriptc", "application/winhlp", "application/xaml+xml", "application/x-bcpio", "application/x-cdf", "application/x-compress", "application/x-compressed", "application/x-cpio", "application/x-csh", "application/x-director", "application/x-dvi", "application/x-gtar", "application/x-gzip", "application/x-hdf", "application/x-internet-signup", "application/x-iphone", "application/x-java-applet", "application/x-javascript", "application/x-latex", "application/x-miva-compiled", "application/x-msaccess", "application/x-ms-application", "application/x-mscardfile", "application/x-msclip", "application/x-msdownload", "application/x-ms-manifest", "application/x-msmediaview", "application/x-msmetafile", "application/x-msmoney", "application/x-mspublisher", "application/x-ms-reader", "application/x-msschedule", "application/x-msterminal", "application/x-ms-vsto", "application/x-ms-wmd", "application/x-ms-wmz", "application/x-mswrite", "application/x-ms-xbap", "application/x-netcdf", "application/x-oleobject", "application/x-perfmon", "application/x-pkcs12", "application/x-pkcs7-certificates", "application/x-pkcs7-certreqresp", "application/x-quicktimeplayer", "application/x-sh", "application/x-shar", "application/x-shockwave-flash", "application/x-silverlight-app", "application/x-smaf", "application/x-stuffit", "application/x-sv4cpio", "application/x-sv4crc", "application/x-tar", "application/x-tcl", "application/x-tex", "application/x-texinfo", "application/x-troff", "application/x-troff-man", "application/x-troff-me", "application/x-troff-ms", "application/x-ustar", "application/x-wais-source", "application/x-x509-ca-cert", "application/x-zip-compressed", "audio/aiff", "audio/basic", "audio/mid", "audio/mpeg", "audio/wav", "audio/x-aiff", "audio/x-mpegurl", "audio/x-ms-wax", "audio/x-ms-wma", "audio/x-pn-realaudio", "audio/x-pn-realaudio-plugin", "audio/x-smd", "drawing/x-dwf", "image/bmp", "image/cis-cod", "image/gif", "image/ief", "image/jpeg", "image/pjpeg", "image/png", "image/tiff", "image/vnd.rn-realflash", "image/vnd.wap.wbmp", "image/x-cmu-raster", "image/x-cmx", "image/x-icon", "image/x-jg", "image/x-portable-anymap", "image/x-portable-bitmap", "image/x-portable-graymap", "image/x-portable-pixmap", "image/x-rgb", "image/x-xbitmap", "image/x-xpixmap", "image/x-xwindowdump", "message/rfc822", "text/css", "text/dlm", "text/h323", "text/html", "text/iuls", "text/jscript", "text/plain", "text/richtext", "text/scriptlet", "text/sgml", "text/tab-separated-values", "text/vbscript", "text/vnd.wap.wml", "text/vnd.wap.wmlscript", "text/webviewhtml", "text/x-component", "text/x-hdml", "text/xml", "text/x-ms-odc", "text/x-setext", "text/x-vcard", "video/mpeg", "video/quicktime", "video/x-flv", "video/x-ivf", "video/x-la-asf", "video/x-ms-asf", "video/x-msvideo", "video/x-ms-wm", "video/x-ms-wmp", "video/x-ms-wmv", "video/x-ms-wmx", "video/x-ms-wvx", "video/x-sgi-movie", "x-world/x-vrml" }.ToList(); _mimeTypeDictionary = new Dictionary<string, string>(); _mimeTypeDictionary.Add(".323" , "text/h323" ); _mimeTypeDictionary.Add(".aaf" , "application/octet-stream" ); _mimeTypeDictionary.Add(".aca" , "application/octet-stream" ); _mimeTypeDictionary.Add(".accdb" , "application/msaccess" ); _mimeTypeDictionary.Add(".accde" , "application/msaccess" ); _mimeTypeDictionary.Add(".accdt" , "application/msaccess" ); _mimeTypeDictionary.Add(".acx" , "application/internet-property-stream" ); _mimeTypeDictionary.Add(".afm" , "application/octet-stream" ); _mimeTypeDictionary.Add(".ai" , "application/postscript" ); _mimeTypeDictionary.Add(".aif" , "audio/x-aiff" ); _mimeTypeDictionary.Add(".aifc" , "audio/aiff" ); _mimeTypeDictionary.Add(".aiff" , "audio/aiff" ); _mimeTypeDictionary.Add(".application", "application/x-ms-application" ); _mimeTypeDictionary.Add(".art" , "image/x-jg" ); _mimeTypeDictionary.Add(".asd" , "application/octet-stream" ); _mimeTypeDictionary.Add(".asf" , "video/x-ms-asf" ); _mimeTypeDictionary.Add(".asi" , "application/octet-stream" ); _mimeTypeDictionary.Add(".asm" , "text/plain" ); _mimeTypeDictionary.Add(".asr" , "video/x-ms-asf" ); _mimeTypeDictionary.Add(".asx" , "video/x-ms-asf" ); _mimeTypeDictionary.Add(".atom" , "application/atom+xml" ); _mimeTypeDictionary.Add(".au" , "audio/basic" ); _mimeTypeDictionary.Add(".avi" , "video/x-msvideo" ); _mimeTypeDictionary.Add(".axs" , "application/olescript" ); _mimeTypeDictionary.Add(".bas" , "text/plain" ); _mimeTypeDictionary.Add(".bcpio" , "application/x-bcpio" ); _mimeTypeDictionary.Add(".bin" , "application/octet-stream" ); _mimeTypeDictionary.Add(".bmp" , "image/bmp" ); _mimeTypeDictionary.Add(".c" , "text/plain" ); _mimeTypeDictionary.Add(".cab" , "application/octet-stream" ); _mimeTypeDictionary.Add(".calx" , "application/vnd.ms-office.calx" ); _mimeTypeDictionary.Add(".cat" , "application/vnd.ms-pki.seccat" ); _mimeTypeDictionary.Add(".cdf" , "application/x-cdf" ); _mimeTypeDictionary.Add(".chm" , "application/octet-stream" ); _mimeTypeDictionary.Add(".class" , "application/x-java-applet" ); _mimeTypeDictionary.Add(".clp" , "application/x-msclip" ); _mimeTypeDictionary.Add(".cmx" , "image/x-cmx" ); _mimeTypeDictionary.Add(".cnf" , "text/plain" ); _mimeTypeDictionary.Add(".cod" , "image/cis-cod" ); _mimeTypeDictionary.Add(".cpio" , "application/x-cpio" ); _mimeTypeDictionary.Add(".cpp" , "text/plain" ); _mimeTypeDictionary.Add(".crd" , "application/x-mscardfile" ); _mimeTypeDictionary.Add(".crl" , "application/pkix-crl" ); _mimeTypeDictionary.Add(".crt" , "application/x-x509-ca-cert" ); _mimeTypeDictionary.Add(".csh" , "application/x-csh" ); _mimeTypeDictionary.Add(".css" , "text/css" ); _mimeTypeDictionary.Add(".csv" , "application/octet-stream" ); _mimeTypeDictionary.Add(".cur" , "application/octet-stream" ); _mimeTypeDictionary.Add(".dcr" , "application/x-director" ); _mimeTypeDictionary.Add(".deploy" , "application/octet-stream" ); _mimeTypeDictionary.Add(".der" , "application/x-x509-ca-cert" ); _mimeTypeDictionary.Add(".dib" , "image/bmp" ); _mimeTypeDictionary.Add(".dir" , "application/x-director" ); _mimeTypeDictionary.Add(".disco" , "text/xml" ); _mimeTypeDictionary.Add(".dll" , "application/x-msdownload" ); _mimeTypeDictionary.Add(".dll.config" , "text/xml" ); _mimeTypeDictionary.Add(".dlm" , "text/dlm" ); _mimeTypeDictionary.Add(".doc" , "application/msword" ); _mimeTypeDictionary.Add(".docm" , "application/vnd.ms-word.document.macroEnabled.12" ); _mimeTypeDictionary.Add(".docx" , "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ); _mimeTypeDictionary.Add(".dot" , "application/msword" ); _mimeTypeDictionary.Add(".dotm" , "application/vnd.ms-word.template.macroEnabled.12" ); _mimeTypeDictionary.Add(".dotx" , "application/vnd.openxmlformats-officedocument.wordprocessingml.template" ); _mimeTypeDictionary.Add(".dsp" , "application/octet-stream" ); _mimeTypeDictionary.Add(".dtd" , "text/xml" ); _mimeTypeDictionary.Add(".dvi" , "application/x-dvi" ); _mimeTypeDictionary.Add(".dwf" , "drawing/x-dwf" ); _mimeTypeDictionary.Add(".dwp" , "application/octet-stream" ); _mimeTypeDictionary.Add(".dxr" , "application/x-director" ); _mimeTypeDictionary.Add(".eml" , "message/rfc822" ); _mimeTypeDictionary.Add(".emz" , "application/octet-stream" ); _mimeTypeDictionary.Add(".eot" , "application/octet-stream" ); _mimeTypeDictionary.Add(".eps" , "application/postscript" ); _mimeTypeDictionary.Add(".etx" , "text/x-setext" ); _mimeTypeDictionary.Add(".evy" , "application/envoy" ); _mimeTypeDictionary.Add(".exe" , "application/octet-stream" ); _mimeTypeDictionary.Add(".exe.config" , "text/xml" ); _mimeTypeDictionary.Add(".fdf" , "application/vnd.fdf" ); _mimeTypeDictionary.Add(".fif" , "application/fractals" ); _mimeTypeDictionary.Add(".fla" , "application/octet-stream" ); _mimeTypeDictionary.Add(".flr" , "x-world/x-vrml" ); _mimeTypeDictionary.Add(".flv" , "video/x-flv" ); _mimeTypeDictionary.Add(".gif" , "image/gif" ); _mimeTypeDictionary.Add(".gtar" , "application/x-gtar" ); _mimeTypeDictionary.Add(".gz" , "application/x-gzip" ); _mimeTypeDictionary.Add(".h" , "text/plain" ); _mimeTypeDictionary.Add(".hdf" , "application/x-hdf" ); _mimeTypeDictionary.Add(".hdml" , "text/x-hdml" ); _mimeTypeDictionary.Add(".hhc" , "application/x-oleobject" ); _mimeTypeDictionary.Add(".hhk" , "application/octet-stream" ); _mimeTypeDictionary.Add(".hhp" , "application/octet-stream" ); _mimeTypeDictionary.Add(".hlp" , "application/winhlp" ); _mimeTypeDictionary.Add(".hqx" , "application/mac-binhex40" ); _mimeTypeDictionary.Add(".hta" , "application/hta" ); _mimeTypeDictionary.Add(".htc" , "text/x-component" ); _mimeTypeDictionary.Add(".htm" , "text/html" ); _mimeTypeDictionary.Add(".html" , "text/html" ); _mimeTypeDictionary.Add(".htt" , "text/webviewhtml" ); _mimeTypeDictionary.Add(".hxt" , "text/html" ); _mimeTypeDictionary.Add(".ico" , "image/x-icon" ); _mimeTypeDictionary.Add(".ics" , "application/octet-stream" ); _mimeTypeDictionary.Add(".ief" , "image/ief" ); _mimeTypeDictionary.Add(".iii" , "application/x-iphone" ); _mimeTypeDictionary.Add(".inf" , "application/octet-stream" ); _mimeTypeDictionary.Add(".ins" , "application/x-internet-signup" ); _mimeTypeDictionary.Add(".isp" , "application/x-internet-signup" ); _mimeTypeDictionary.Add(".IVF" , "video/x-ivf" ); _mimeTypeDictionary.Add(".jar" , "application/java-archive" ); _mimeTypeDictionary.Add(".java" , "application/octet-stream" ); _mimeTypeDictionary.Add(".jck" , "application/liquidmotion" ); _mimeTypeDictionary.Add(".jcz" , "application/liquidmotion" ); _mimeTypeDictionary.Add(".jfif" , "image/pjpeg" ); _mimeTypeDictionary.Add(".jpb" , "application/octet-stream" ); _mimeTypeDictionary.Add(".jpe" , "image/jpeg" ); _mimeTypeDictionary.Add(".jpeg" , "image/jpeg" ); _mimeTypeDictionary.Add(".jpg" , "image/jpeg" ); _mimeTypeDictionary.Add(".js" , "application/x-javascript" ); _mimeTypeDictionary.Add(".jsx" , "text/jscript" ); _mimeTypeDictionary.Add(".latex" , "application/x-latex" ); _mimeTypeDictionary.Add(".lit" , "application/x-ms-reader" ); _mimeTypeDictionary.Add(".lpk" , "application/octet-stream" ); _mimeTypeDictionary.Add(".lsf" , "video/x-la-asf" ); _mimeTypeDictionary.Add(".lsx" , "video/x-la-asf" ); _mimeTypeDictionary.Add(".lzh" , "application/octet-stream" ); _mimeTypeDictionary.Add(".m13" , "application/x-msmediaview" ); _mimeTypeDictionary.Add(".m14" , "application/x-msmediaview" ); _mimeTypeDictionary.Add(".m1v" , "video/mpeg" ); _mimeTypeDictionary.Add(".m3u" , "audio/x-mpegurl" ); _mimeTypeDictionary.Add(".man" , "application/x-troff-man" ); _mimeTypeDictionary.Add(".manifest" , "application/x-ms-manifest" ); _mimeTypeDictionary.Add(".map" , "text/plain" ); _mimeTypeDictionary.Add(".mdb" , "application/x-msaccess" ); _mimeTypeDictionary.Add(".mdp" , "application/octet-stream" ); _mimeTypeDictionary.Add(".me" , "application/x-troff-me" ); _mimeTypeDictionary.Add(".mht" , "message/rfc822" ); _mimeTypeDictionary.Add(".mhtml" , "message/rfc822" ); _mimeTypeDictionary.Add(".mid" , "audio/mid" ); _mimeTypeDictionary.Add(".midi" , "audio/mid" ); _mimeTypeDictionary.Add(".mix" , "application/octet-stream" ); _mimeTypeDictionary.Add(".mmf" , "application/x-smaf" ); _mimeTypeDictionary.Add(".mno" , "text/xml" ); _mimeTypeDictionary.Add(".mny" , "application/x-msmoney" ); _mimeTypeDictionary.Add(".mov" , "video/quicktime" ); _mimeTypeDictionary.Add(".movie" , "video/x-sgi-movie" ); _mimeTypeDictionary.Add(".mp2" , "video/mpeg" ); _mimeTypeDictionary.Add(".mp3" , "audio/mpeg" ); _mimeTypeDictionary.Add(".mpa" , "video/mpeg" ); _mimeTypeDictionary.Add(".mpe" , "video/mpeg" ); _mimeTypeDictionary.Add(".mpeg" , "video/mpeg" ); _mimeTypeDictionary.Add(".mpg" , "video/mpeg" ); _mimeTypeDictionary.Add(".mpp" , "application/vnd.ms-project" ); _mimeTypeDictionary.Add(".mpv2" , "video/mpeg" ); _mimeTypeDictionary.Add(".ms" , "application/x-troff-ms" ); _mimeTypeDictionary.Add(".msi" , "application/octet-stream" ); _mimeTypeDictionary.Add(".mso" , "application/octet-stream" ); _mimeTypeDictionary.Add(".mvb" , "application/x-msmediaview" ); _mimeTypeDictionary.Add(".mvc" , "application/x-miva-compiled" ); _mimeTypeDictionary.Add(".nc" , "application/x-netcdf" ); _mimeTypeDictionary.Add(".nsc" , "video/x-ms-asf" ); _mimeTypeDictionary.Add(".nws" , "message/rfc822" ); _mimeTypeDictionary.Add(".ocx" , "application/octet-stream" ); _mimeTypeDictionary.Add(".oda" , "application/oda" ); _mimeTypeDictionary.Add(".odc" , "text/x-ms-odc" ); _mimeTypeDictionary.Add(".ods" , "application/oleobject" ); _mimeTypeDictionary.Add(".one" , "application/onenote" ); _mimeTypeDictionary.Add(".onea" , "application/onenote" ); _mimeTypeDictionary.Add(".onetoc" , "application/onenote" ); _mimeTypeDictionary.Add(".onetoc2" , "application/onenote" ); _mimeTypeDictionary.Add(".onetmp" , "application/onenote" ); _mimeTypeDictionary.Add(".onepkg" , "application/onenote" ); _mimeTypeDictionary.Add(".osdx" , "application/opensearchdescription+xml" ); _mimeTypeDictionary.Add(".p10" , "application/pkcs10" ); _mimeTypeDictionary.Add(".p12" , "application/x-pkcs12" ); _mimeTypeDictionary.Add(".p7b" , "application/x-pkcs7-certificates" ); _mimeTypeDictionary.Add(".p7c" , "application/pkcs7-mime" ); _mimeTypeDictionary.Add(".p7m" , "application/pkcs7-mime" ); _mimeTypeDictionary.Add(".p7r" , "application/x-pkcs7-certreqresp" ); _mimeTypeDictionary.Add(".p7s" , "application/pkcs7-signature" ); _mimeTypeDictionary.Add(".pbm" , "image/x-portable-bitmap" ); _mimeTypeDictionary.Add(".pcx" , "application/octet-stream" ); _mimeTypeDictionary.Add(".pcz" , "application/octet-stream" ); _mimeTypeDictionary.Add(".pdf" , "application/pdf" ); _mimeTypeDictionary.Add(".pfb" , "application/octet-stream" ); _mimeTypeDictionary.Add(".pfm" , "application/octet-stream" ); _mimeTypeDictionary.Add(".pfx" , "application/x-pkcs12" ); _mimeTypeDictionary.Add(".pgm" , "image/x-portable-graymap" ); _mimeTypeDictionary.Add(".pko" , "application/vnd.ms-pki.pko" ); _mimeTypeDictionary.Add(".pma" , "application/x-perfmon" ); _mimeTypeDictionary.Add(".pmc" , "application/x-perfmon" ); _mimeTypeDictionary.Add(".pml" , "application/x-perfmon" ); _mimeTypeDictionary.Add(".pmr" , "application/x-perfmon" ); _mimeTypeDictionary.Add(".pmw" , "application/x-perfmon" ); _mimeTypeDictionary.Add(".png" , "image/png" ); _mimeTypeDictionary.Add(".pnm" , "image/x-portable-anymap" ); _mimeTypeDictionary.Add(".pnz" , "image/png" ); _mimeTypeDictionary.Add(".pot" , "application/vnd.ms-powerpoint" ); _mimeTypeDictionary.Add(".potm" , "application/vnd.ms-powerpoint.template.macroEnabled.12" ); _mimeTypeDictionary.Add(".potx" , "application/vnd.openxmlformats-officedocument.presentationml.template" ); _mimeTypeDictionary.Add(".ppam" , "application/vnd.ms-powerpoint.addin.macroEnabled.12" ); _mimeTypeDictionary.Add(".ppm" , "image/x-portable-pixmap" ); _mimeTypeDictionary.Add(".pps" , "application/vnd.ms-powerpoint" ); _mimeTypeDictionary.Add(".ppsm" , "application/vnd.ms-powerpoint.slideshow.macroEnabled.12" ); _mimeTypeDictionary.Add(".ppsx" , "application/vnd.openxmlformats-officedocument.presentationml.slideshow" ); _mimeTypeDictionary.Add(".ppt" , "application/vnd.ms-powerpoint" ); _mimeTypeDictionary.Add(".pptm" , "application/vnd.ms-powerpoint.presentation.macroEnabled.12" ); _mimeTypeDictionary.Add(".pptx" , "application/vnd.openxmlformats-officedocument.presentationml.presentation"); _mimeTypeDictionary.Add(".prf" , "application/pics-rules" ); _mimeTypeDictionary.Add(".prm" , "application/octet-stream" ); _mimeTypeDictionary.Add(".prx" , "application/octet-stream" ); _mimeTypeDictionary.Add(".ps" , "application/postscript" ); _mimeTypeDictionary.Add(".psd" , "application/octet-stream" ); _mimeTypeDictionary.Add(".psm" , "application/octet-stream" ); _mimeTypeDictionary.Add(".psp" , "application/octet-stream" ); _mimeTypeDictionary.Add(".pub" , "application/x-mspublisher" ); _mimeTypeDictionary.Add(".qt" , "video/quicktime" ); _mimeTypeDictionary.Add(".qtl" , "application/x-quicktimeplayer" ); _mimeTypeDictionary.Add(".qxd" , "application/octet-stream" ); _mimeTypeDictionary.Add(".ra" , "audio/x-pn-realaudio" ); _mimeTypeDictionary.Add(".ram" , "audio/x-pn-realaudio" ); _mimeTypeDictionary.Add(".rar" , "application/octet-stream" ); _mimeTypeDictionary.Add(".ras" , "image/x-cmu-raster" ); _mimeTypeDictionary.Add(".rf" , "image/vnd.rn-realflash" ); _mimeTypeDictionary.Add(".rgb" , "image/x-rgb" ); _mimeTypeDictionary.Add(".rm" , "application/vnd.rn-realmedia" ); _mimeTypeDictionary.Add(".rmi" , "audio/mid" ); _mimeTypeDictionary.Add(".roff" , "application/x-troff" ); _mimeTypeDictionary.Add(".rpm" , "audio/x-pn-realaudio-plugin" ); _mimeTypeDictionary.Add(".rtf" , "application/rtf" ); _mimeTypeDictionary.Add(".rtx" , "text/richtext" ); _mimeTypeDictionary.Add(".scd" , "application/x-msschedule" ); _mimeTypeDictionary.Add(".sct" , "text/scriptlet" ); _mimeTypeDictionary.Add(".sea" , "application/octet-stream" ); _mimeTypeDictionary.Add(".setpay" , "application/set-payment-initiation" ); _mimeTypeDictionary.Add(".setreg" , "application/set-registration-initiation" ); _mimeTypeDictionary.Add(".sgml" , "text/sgml" ); _mimeTypeDictionary.Add(".sh" , "application/x-sh" ); _mimeTypeDictionary.Add(".shar" , "application/x-shar" ); _mimeTypeDictionary.Add(".sit" , "application/x-stuffit" ); _mimeTypeDictionary.Add(".sldm" , "application/vnd.ms-powerpoint.slide.macroEnabled.12" ); _mimeTypeDictionary.Add(".sldx" , "application/vnd.openxmlformats-officedocument.presentationml.slide" ); _mimeTypeDictionary.Add(".smd" , "audio/x-smd" ); _mimeTypeDictionary.Add(".smi" , "application/octet-stream" ); _mimeTypeDictionary.Add(".smx" , "audio/x-smd" ); _mimeTypeDictionary.Add(".smz" , "audio/x-smd" ); _mimeTypeDictionary.Add(".snd" , "audio/basic" ); _mimeTypeDictionary.Add(".snp" , "application/octet-stream" ); _mimeTypeDictionary.Add(".spc" , "application/x-pkcs7-certificates" ); _mimeTypeDictionary.Add(".spl" , "application/futuresplash" ); _mimeTypeDictionary.Add(".src" , "application/x-wais-source" ); _mimeTypeDictionary.Add(".ssm" , "application/streamingmedia" ); _mimeTypeDictionary.Add(".sst" , "application/vnd.ms-pki.certstore" ); _mimeTypeDictionary.Add(".stl" , "application/vnd.ms-pki.stl" ); _mimeTypeDictionary.Add(".sv4cpio" , "application/x-sv4cpio" ); _mimeTypeDictionary.Add(".sv4crc" , "application/x-sv4crc" ); _mimeTypeDictionary.Add(".swf" , "application/x-shockwave-flash" ); _mimeTypeDictionary.Add(".t" , "application/x-troff" ); _mimeTypeDictionary.Add(".tar" , "application/x-tar" ); _mimeTypeDictionary.Add(".tcl" , "application/x-tcl" ); _mimeTypeDictionary.Add(".tex" , "application/x-tex" ); _mimeTypeDictionary.Add(".texi" , "application/x-texinfo" ); _mimeTypeDictionary.Add(".texinfo" , "application/x-texinfo" ); _mimeTypeDictionary.Add(".tgz" , "application/x-compressed" ); _mimeTypeDictionary.Add(".thmx" , "application/vnd.ms-officetheme" ); _mimeTypeDictionary.Add(".thn" , "application/octet-stream" ); _mimeTypeDictionary.Add(".tif" , "image/tiff" ); _mimeTypeDictionary.Add(".tiff" , "image/tiff" ); _mimeTypeDictionary.Add(".toc" , "application/octet-stream" ); _mimeTypeDictionary.Add(".tr" , "application/x-troff" ); _mimeTypeDictionary.Add(".trm" , "application/x-msterminal" ); _mimeTypeDictionary.Add(".tsv" , "text/tab-separated-values" ); _mimeTypeDictionary.Add(".ttf" , "application/octet-stream" ); _mimeTypeDictionary.Add(".txt" , "text/plain" ); _mimeTypeDictionary.Add(".u32" , "application/octet-stream" ); _mimeTypeDictionary.Add(".uls" , "text/iuls" ); _mimeTypeDictionary.Add(".ustar" , "application/x-ustar" ); _mimeTypeDictionary.Add(".vbs" , "text/vbscript" ); _mimeTypeDictionary.Add(".vcf" , "text/x-vcard" ); _mimeTypeDictionary.Add(".vcs" , "text/plain" ); _mimeTypeDictionary.Add(".vdx" , "application/vnd.ms-visio.viewer" ); _mimeTypeDictionary.Add(".vml" , "text/xml" ); _mimeTypeDictionary.Add(".vsd" , "application/vnd.visio" ); _mimeTypeDictionary.Add(".vss" , "application/vnd.visio" ); _mimeTypeDictionary.Add(".vst" , "application/vnd.visio" ); _mimeTypeDictionary.Add(".vsto" , "application/x-ms-vsto" ); _mimeTypeDictionary.Add(".vsw" , "application/vnd.visio" ); _mimeTypeDictionary.Add(".vsx" , "application/vnd.visio" ); _mimeTypeDictionary.Add(".vtx" , "application/vnd.visio" ); _mimeTypeDictionary.Add(".wav" , "audio/wav" ); _mimeTypeDictionary.Add(".wax" , "audio/x-ms-wax" ); _mimeTypeDictionary.Add(".wbmp" , "image/vnd.wap.wbmp" ); _mimeTypeDictionary.Add(".wcm" , "application/vnd.ms-works" ); _mimeTypeDictionary.Add(".wdb" , "application/vnd.ms-works" ); _mimeTypeDictionary.Add(".wks" , "application/vnd.ms-works" ); _mimeTypeDictionary.Add(".wm" , "video/x-ms-wm" ); _mimeTypeDictionary.Add(".wma" , "audio/x-ms-wma" ); _mimeTypeDictionary.Add(".wmd" , "application/x-ms-wmd" ); _mimeTypeDictionary.Add(".wmf" , "application/x-msmetafile" ); _mimeTypeDictionary.Add(".wml" , "text/vnd.wap.wml" ); _mimeTypeDictionary.Add(".wmlc" , "application/vnd.wap.wmlc" ); _mimeTypeDictionary.Add(".wmls" , "text/vnd.wap.wmlscript" ); _mimeTypeDictionary.Add(".wmlsc" , "application/vnd.wap.wmlscriptc" ); _mimeTypeDictionary.Add(".wmp" , "video/x-ms-wmp" ); _mimeTypeDictionary.Add(".wmv" , "video/x-ms-wmv" ); _mimeTypeDictionary.Add(".wmx" , "video/x-ms-wmx" ); _mimeTypeDictionary.Add(".wmz" , "application/x-ms-wmz" ); _mimeTypeDictionary.Add(".wps" , "application/vnd.ms-works" ); _mimeTypeDictionary.Add(".wri" , "application/x-mswrite" ); _mimeTypeDictionary.Add(".wrl" , "x-world/x-vrml" ); _mimeTypeDictionary.Add(".wrz" , "x-world/x-vrml" ); _mimeTypeDictionary.Add(".wsdl" , "text/xml" ); _mimeTypeDictionary.Add(".wvx" , "video/x-ms-wvx" ); _mimeTypeDictionary.Add(".x" , "application/directx" ); _mimeTypeDictionary.Add(".xaf" , "x-world/x-vrml" ); _mimeTypeDictionary.Add(".xaml" , "application/xaml+xml" ); _mimeTypeDictionary.Add(".xap" , "application/x-silverlight-app" ); _mimeTypeDictionary.Add(".xbap" , "application/x-ms-xbap" ); _mimeTypeDictionary.Add(".xbm" , "image/x-xbitmap" ); _mimeTypeDictionary.Add(".xdr" , "text/plain" ); _mimeTypeDictionary.Add(".xla" , "application/vnd.ms-excel" ); _mimeTypeDictionary.Add(".xlam" , "application/vnd.ms-excel.addin.macroEnabled.12" ); _mimeTypeDictionary.Add(".xlc" , "application/vnd.ms-excel" ); _mimeTypeDictionary.Add(".xlm" , "application/vnd.ms-excel" ); _mimeTypeDictionary.Add(".xls" , "application/vnd.ms-excel" ); _mimeTypeDictionary.Add(".xlsb" , "application/vnd.ms-excel.sheet.binary.macroEnabled.12" ); _mimeTypeDictionary.Add(".xlsm" , "application/vnd.ms-excel.sheet.macroEnabled.12" ); _mimeTypeDictionary.Add(".xlsx" , "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ); _mimeTypeDictionary.Add(".xlt" , "application/vnd.ms-excel" ); _mimeTypeDictionary.Add(".xltm" , "application/vnd.ms-excel.template.macroEnabled.12" ); _mimeTypeDictionary.Add(".xltx" , "application/vnd.openxmlformats-officedocument.spreadsheetml.template" ); _mimeTypeDictionary.Add(".xlw" , "application/vnd.ms-excel" ); _mimeTypeDictionary.Add(".xml" , "text/xml" ); _mimeTypeDictionary.Add(".xof" , "x-world/x-vrml" ); _mimeTypeDictionary.Add(".xpm" , "image/x-xpixmap" ); _mimeTypeDictionary.Add(".xps" , "application/vnd.ms-xpsdocument" ); _mimeTypeDictionary.Add(".xsd" , "text/xml" ); _mimeTypeDictionary.Add(".xsf" , "text/xml" ); _mimeTypeDictionary.Add(".xsl" , "text/xml" ); _mimeTypeDictionary.Add(".xslt" , "text/xml" ); _mimeTypeDictionary.Add(".xsn" , "application/octet-stream" ); _mimeTypeDictionary.Add(".xtp" , "application/octet-stream" ); _mimeTypeDictionary.Add(".xwd" , "image/x-xwindowdump" ); _mimeTypeDictionary.Add(".z" , "application/x-compress" ); _mimeTypeDictionary.Add(".zip" , "application/x-zip-compressed" ); } #endregion } |