MimeTypes.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  1. <?php
  2. //----------------------------------------------------------------------------------------------------
  3. // MIME TYPES
  4. //----------------------------------------------------------------------------------------------------
  5. //
  6. // Author : Ozan UYKUN <ozanbote@windowslive.com> | <ozanbote@gmail.com>
  7. // Site : www.znframework.com
  8. // License : The MIT License
  9. // Copyright : Copyright (c) 2012-2016, ZN Framework
  10. //
  11. //----------------------------------------------------------------------------------------------------
  12. //----------------------------------------------------------------------------------------------------
  13. // Mime Types
  14. //----------------------------------------------------------------------------------------------------
  15. //
  16. // Genel Kullanım: Mime türleri listesidir.
  17. //
  18. //----------------------------------------------------------------------------------------------------
  19. $config['MimeTypes'] =
  20. [
  21. // A ---------------------------------------------------------------------------------------------
  22. 'aac' => 'audio/x-acc',
  23. 'ac3' => 'audio/ac3',
  24. 'ai' =>
  25. [
  26. 'application/pdf',
  27. 'application/postscript'
  28. ],
  29. 'aifc' => 'audio/x-aiff',
  30. 'aif' =>
  31. [
  32. 'audio/x-aiff',
  33. 'audio/aiff'
  34. ],
  35. 'aiff' =>
  36. [
  37. 'audio/x-aiff',
  38. 'audio/aiff'
  39. ],
  40. 'au' => 'audio/x-au',
  41. 'avi' =>
  42. [
  43. 'video/x-msvideo',
  44. 'video/msvideo',
  45. 'video/avi',
  46. 'application/x-troff-msvideo'
  47. ],
  48. // A ---------------------------------------------------------------------------------------------
  49. // B ---------------------------------------------------------------------------------------------
  50. 'bin' =>
  51. [
  52. 'application/macbinary',
  53. 'application/mac-binary',
  54. 'application/octet-stream',
  55. 'application/x-binary',
  56. 'application/x-macbinary'
  57. ],
  58. 'bmp' =>
  59. [
  60. 'image/bmp',
  61. 'image/x-bmp',
  62. 'image/x-bitmap',
  63. 'image/x-xbitmap',
  64. 'image/x-win-bitmap',
  65. 'image/x-windows-bmp',
  66. 'image/ms-bmp',
  67. 'image/x-ms-bmp',
  68. 'application/bmp',
  69. 'application/x-bmp',
  70. 'application/x-win-bitmap'
  71. ],
  72. // B ---------------------------------------------------------------------------------------------
  73. // C ---------------------------------------------------------------------------------------------
  74. 'cdr' =>
  75. [
  76. 'application/cdr',
  77. 'application/coreldraw',
  78. 'application/x-cdr',
  79. 'application/x-coreldraw',
  80. 'image/cdr',
  81. 'image/x-cdr',
  82. 'zz-application/zz-winassoc-cdr'
  83. ],
  84. 'cer' =>
  85. [
  86. 'application/pkix-cert',
  87. 'application/x-x509-ca-cert'
  88. ],
  89. 'class' => 'application/octet-stream',
  90. 'cpt' => 'application/mac-compactpro',
  91. 'crl' =>
  92. [
  93. 'application/pkix-crl',
  94. 'application/pkcs-crl'
  95. ],
  96. 'crt' =>
  97. [
  98. 'application/x-x509-ca-cert',
  99. 'application/x-x509-user-cert',
  100. 'application/pkix-cert'
  101. ],
  102. 'csr' => 'application/octet-stream',
  103. 'css' =>
  104. [
  105. 'text/css',
  106. 'text/plain'
  107. ],
  108. 'csv' =>
  109. [
  110. 'text/x-comma-separated-values',
  111. 'text/comma-separated-values',
  112. 'application/octet-stream',
  113. 'application/vnd.ms-excel',
  114. 'application/x-csv',
  115. 'text/x-csv',
  116. 'text/csv',
  117. 'application/csv',
  118. 'application/excel',
  119. 'application/vnd.msexcel',
  120. 'text/plain'
  121. ],
  122. // C ---------------------------------------------------------------------------------------------
  123. // D ---------------------------------------------------------------------------------------------
  124. 'dcr' => 'application/x-director',
  125. 'der' => 'application/x-x509-ca-cert',
  126. 'dir' => 'application/x-director',
  127. 'dll' => 'application/octet-stream',
  128. 'dms' => 'application/octet-stream',
  129. 'doc' =>
  130. [
  131. 'application/msword',
  132. 'application/vnd.ms-office'
  133. ],
  134. 'docx' =>
  135. [
  136. 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
  137. 'application/zip',
  138. 'application/msword',
  139. 'application/x-zip'
  140. ],
  141. 'dot' =>
  142. [
  143. 'application/msword',
  144. 'application/vnd.ms-office'
  145. ],
  146. 'dotx' =>
  147. [
  148. 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
  149. 'application/zip',
  150. 'application/msword'
  151. ],
  152. 'dvi' => 'application/x-dvi',
  153. 'dxr' => 'application/x-director',
  154. // D ---------------------------------------------------------------------------------------------
  155. // E ---------------------------------------------------------------------------------------------
  156. 'eml' => 'message/rfc822',
  157. 'eps' => 'application/postscript',
  158. 'exe' =>
  159. [
  160. 'application/octet-stream',
  161. 'application/x-msdownload'
  162. ],
  163. // E ---------------------------------------------------------------------------------------------
  164. // F ---------------------------------------------------------------------------------------------
  165. 'flac' => 'audio/x-flac',
  166. 'f4v' => 'video/mp4',
  167. // F ---------------------------------------------------------------------------------------------
  168. // G ---------------------------------------------------------------------------------------------
  169. 'gif' => 'image/gif',
  170. 'gpg' => 'application/gpg-keys',
  171. 'gtar' => 'application/x-gtar',
  172. 'gz' => 'application/x-gzip',
  173. 'gzip' => 'application/x-gzip',
  174. // G ---------------------------------------------------------------------------------------------
  175. // H ---------------------------------------------------------------------------------------------
  176. 'hqx' =>
  177. [
  178. 'application/mac-binhex40',
  179. 'application/mac-binhex',
  180. 'application/x-binhex40',
  181. 'application/x-mac-binhex40'
  182. ],
  183. 'htm' =>
  184. [
  185. 'text/html',
  186. 'text/plain'
  187. ],
  188. 'html' =>
  189. [
  190. 'text/html',
  191. 'text/plain'
  192. ],
  193. // H ---------------------------------------------------------------------------------------------
  194. // I ---------------------------------------------------------------------------------------------
  195. 'ical' => 'text/calendar',
  196. 'ico' => 'image/x-icon',
  197. 'ics' => 'text/calendar',
  198. // I ---------------------------------------------------------------------------------------------
  199. // J ---------------------------------------------------------------------------------------------
  200. 'jar' =>
  201. [
  202. 'application/java-archive',
  203. 'application/x-java-application',
  204. 'application/x-jar',
  205. 'application/x-compressed'
  206. ],
  207. 'jpe' =>
  208. [
  209. 'image/jpeg',
  210. 'image/pjpeg'
  211. ],
  212. 'jpeg' =>
  213. [
  214. 'image/jpeg',
  215. 'image/pjpeg'
  216. ],
  217. 'jpg' =>
  218. [
  219. 'image/jpeg',
  220. 'image/pjpeg'
  221. ],
  222. 'js' =>
  223. [
  224. 'application/x-javascript',
  225. 'text/plain'
  226. ],
  227. 'json' =>
  228. [
  229. 'application/json',
  230. 'text/json'
  231. ],
  232. // J ---------------------------------------------------------------------------------------------
  233. // L ---------------------------------------------------------------------------------------------
  234. 'lha' => 'application/octet-stream',
  235. 'log' =>
  236. [
  237. 'text/plain',
  238. 'text/x-log'
  239. ],
  240. 'lzh' => 'application/octet-stream',
  241. // L ---------------------------------------------------------------------------------------------
  242. // K ---------------------------------------------------------------------------------------------
  243. 'kdb' => 'application/octet-stream',
  244. 'kml' =>
  245. [
  246. 'application/vnd.google-earth.kml+xml',
  247. 'application/xml',
  248. 'text/xml'
  249. ],
  250. 'kmz' =>
  251. [
  252. 'application/vnd.google-earth.kmz',
  253. 'application/zip',
  254. 'application/x-zip'
  255. ],
  256. // K ---------------------------------------------------------------------------------------------
  257. // M ---------------------------------------------------------------------------------------------
  258. 'mid' => 'audio/midi',
  259. 'midi' => 'audio/midi',
  260. 'mif' => 'application/vnd.mif',
  261. 'mov' => 'video/quicktime',
  262. 'movie' => 'video/x-sgi-movie',
  263. 'mpe' => 'video/mpeg',
  264. 'mpeg' => 'video/mpeg',
  265. 'mpg' => 'video/mpeg',
  266. 'mpga' => 'audio/mpeg',
  267. 'mp2' => 'audio/mpeg',
  268. 'mp3' =>
  269. [
  270. 'audio/mpeg',
  271. 'audio/mpg',
  272. 'audio/mpeg3',
  273. 'audio/mp3'
  274. ],
  275. 'mp4' => 'video/mp4',
  276. 'm3u' => 'text/plain',
  277. 'm4a' => 'audio/x-m4a',
  278. 'm4u' => 'application/vnd.mpegurl',
  279. // M ---------------------------------------------------------------------------------------------
  280. // O ---------------------------------------------------------------------------------------------
  281. 'oda' => 'application/oda',
  282. 'ogg' => 'audio/ogg',
  283. // O ---------------------------------------------------------------------------------------------
  284. // P ---------------------------------------------------------------------------------------------
  285. 'pdf' =>
  286. [
  287. 'application/pdf',
  288. 'application/force-download',
  289. 'application/x-download',
  290. 'binary/octet-stream'
  291. ],
  292. 'pem' =>
  293. [
  294. 'application/x-x509-user-cert',
  295. 'application/x-pem-file',
  296. 'application/octet-stream'
  297. ],
  298. 'pgp' => 'application/pgp',
  299. 'php' =>
  300. [
  301. 'application/x-httpd-php',
  302. 'application/php',
  303. 'application/x-php',
  304. 'text/php', 'text/x-php',
  305. 'application/x-httpd-php-source'
  306. ],
  307. 'phps' => 'application/x-httpd-php-source',
  308. 'php3' => 'application/x-httpd-php',
  309. 'php4' => 'application/x-httpd-php',
  310. 'phtml' => 'application/x-httpd-php',
  311. 'png' =>
  312. [
  313. 'image/png',
  314. 'image/x-png'
  315. ],
  316. 'ppt' =>
  317. [
  318. 'application/powerpoint',
  319. 'application/vnd.ms-powerpoint',
  320. 'application/vnd.ms-office',
  321. 'application/msword'
  322. ],
  323. 'pptx' =>
  324. [
  325. 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
  326. 'application/x-zip',
  327. 'application/zip'
  328. ],
  329. 'ps' => 'application/postscript',
  330. 'psd' =>
  331. [
  332. 'application/x-photoshop',
  333. 'image/vnd.adobe.photoshop'
  334. ],
  335. 'p10' =>
  336. [
  337. 'application/x-pkcs10',
  338. 'application/pkcs10'
  339. ],
  340. 'p12' => 'application/x-pkcs12',
  341. 'p7a' => 'application/x-pkcs7-signature',
  342. 'p7c' =>
  343. [
  344. 'application/pkcs7-mime',
  345. 'application/x-pkcs7-mime'
  346. ],
  347. 'p7m' =>
  348. [
  349. 'application/pkcs7-mime',
  350. 'application/x-pkcs7-mime'
  351. ],
  352. 'p7r' => 'application/x-pkcs7-certreqresp',
  353. 'p7s' => 'application/pkcs7-signature',
  354. // P ---------------------------------------------------------------------------------------------
  355. // Q ---------------------------------------------------------------------------------------------
  356. 'qt' => 'video/quicktime',
  357. // Q ---------------------------------------------------------------------------------------------
  358. // R ---------------------------------------------------------------------------------------------
  359. 'ra' => 'audio/x-realaudio',
  360. 'ram' => 'audio/x-pn-realaudio',
  361. 'rar' =>
  362. [
  363. 'application/x-rar',
  364. 'application/rar',
  365. 'application/x-rar-compressed'
  366. ],
  367. 'rm' => 'audio/x-pn-realaudio',
  368. 'rpm' => 'audio/x-pn-realaudio-plugin',
  369. 'rsa' => 'application/x-pkcs7',
  370. 'rtf' => 'text/rtf',
  371. 'rtx' => 'text/richtext',
  372. 'rv' => 'video/vnd.rn-realvideo',
  373. // R ---------------------------------------------------------------------------------------------
  374. // S ---------------------------------------------------------------------------------------------
  375. 'sea' => 'application/octet-stream',
  376. 'shtml' =>
  377. [
  378. 'text/html',
  379. 'text/plain'
  380. ],
  381. 'sit' => 'application/x-stuffit',
  382. 'smi' => 'application/smil',
  383. 'smil' => 'application/smil',
  384. 'so' => 'application/octet-stream',
  385. 'srt' =>
  386. [
  387. 'text/srt',
  388. 'text/plain'
  389. ],
  390. 'sst' => 'application/octet-stream',
  391. 'svg' =>
  392. [
  393. 'image/svg+xml',
  394. 'application/xml',
  395. 'text/xml'
  396. ],
  397. 'swf' => 'application/x-shockwave-flash',
  398. // S ---------------------------------------------------------------------------------------------
  399. // T ---------------------------------------------------------------------------------------------
  400. 'tar' => 'application/x-tar',
  401. 'text' => 'text/plain',
  402. 'tgz' =>
  403. [
  404. 'application/x-tar',
  405. 'application/x-gzip-compressed'
  406. ],
  407. 'tif' => 'image/tiff',
  408. 'tiff' => 'image/tiff',
  409. 'txt' => 'text/plain',
  410. // T ---------------------------------------------------------------------------------------------
  411. // V ---------------------------------------------------------------------------------------------
  412. 'vcf' => 'text/x-vcard',
  413. 'vlc' => 'application/videolan',
  414. 'vtt' =>
  415. [
  416. 'text/vtt',
  417. 'text/plain'
  418. ],
  419. // V ---------------------------------------------------------------------------------------------
  420. // W ---------------------------------------------------------------------------------------------
  421. 'wav' =>
  422. [
  423. 'audio/x-wav',
  424. 'audio/wave',
  425. 'audio/wav'
  426. ],
  427. 'wbxml' => 'application/wbxml',
  428. 'webm' => 'video/webm',
  429. 'wma' =>
  430. [
  431. 'audio/x-ms-wma',
  432. 'video/x-ms-asf'
  433. ],
  434. 'wmlc' => 'application/wmlc',
  435. 'wmv' =>
  436. [
  437. 'video/x-ms-wmv',
  438. 'video/x-ms-asf'
  439. ],
  440. 'word' =>
  441. [
  442. 'application/msword',
  443. 'application/octet-stream'
  444. ],
  445. // W ---------------------------------------------------------------------------------------------
  446. // X ---------------------------------------------------------------------------------------------
  447. 'xht' => 'application/xhtml+xml',
  448. 'xhtml' => 'application/xhtml+xml',
  449. 'xl' => 'application/excel',
  450. 'xls' =>
  451. [
  452. 'application/vnd.ms-excel',
  453. 'application/msexcel',
  454. 'application/x-msexcel',
  455. 'application/x-ms-excel',
  456. 'application/x-excel',
  457. 'application/x-dos_ms_excel',
  458. 'application/xls',
  459. 'application/x-xls',
  460. 'application/excel',
  461. 'application/download',
  462. 'application/vnd.ms-office',
  463. 'application/msword'
  464. ],
  465. 'xlsx' =>
  466. [
  467. 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
  468. 'application/zip',
  469. 'application/vnd.ms-excel',
  470. 'application/msword',
  471. 'application/x-zip'
  472. ],
  473. 'xml' =>
  474. [
  475. 'application/xml',
  476. 'text/xml',
  477. 'text/plain'
  478. ],
  479. 'xsl' =>
  480. [
  481. 'application/xml',
  482. 'text/xsl',
  483. 'text/xml'
  484. ],
  485. 'xspf' => 'application/xspf+xml',
  486. // X ---------------------------------------------------------------------------------------------
  487. // Z ---------------------------------------------------------------------------------------------
  488. 'z' => 'application/x-compress',
  489. 'zip' =>
  490. [
  491. 'application/x-zip',
  492. 'application/zip',
  493. 'application/x-zip-compressed',
  494. 'application/s-compressed',
  495. 'multipart/x-zip'
  496. ],
  497. 'zsh' => 'text/x-scriptzsh',
  498. // Z ---------------------------------------------------------------------------------------------
  499. // 3 ---------------------------------------------------------------------------------------------
  500. '3gp' =>
  501. [
  502. 'video/3gp',
  503. 'video/3gpp'
  504. ],
  505. '3g2' => 'video/3gpp2',
  506. // 3 ---------------------------------------------------------------------------------------------
  507. // 7 ---------------------------------------------------------------------------------------------
  508. '7zip' =>
  509. [
  510. 'application/x-compressed',
  511. 'application/x-zip-compressed',
  512. 'application/zip',
  513. 'multipart/x-zip'
  514. ]
  515. // 7 ---------------------------------------------------------------------------------------------
  516. ];