source: trunk/Modules/File/MimeTypes.php

Last change on this file was 887, checked in by chronos, 4 years ago
  • Added: Static types added to almost all classes, methods and function. Supported by PHP 7.4.
  • Fixed: Various found code issues.
File size: 5.7 KB
Line 
1<?php
2
3function GetMimeTypes(): array
4{
5 return array(
6 '7z' => array('application/x-7z-compressed'),
7 'ai' => array('application/postscript'),
8 'aif' => array('audio/x-aiff'),
9 'aifc' => array('audio/x-aiff'),
10 'aiff' => array('audio/x-aiff'),
11 'asf' => array('video/x-ms-asf'),
12 'atom' => array('application/atom+xml'),
13 'avi' => array('video/x-msvideo'),
14 'bin' => array('application/octet-stream','application/macbinary'),
15 'bmp' => array('image/bmp'),
16 'cab' => array('application/x-cab'),
17 'cpt' => array('application/mac-compactpro'),
18 'class' => array('application/octet-stream'),
19 'css' => array('text/css'),
20 'csv' => array('text/x-comma-separated-values', 'application/vnd.ms-excel'),
21 'deb' => array('application/x-debian-package'),
22 'dbk' => array('application/docbook+xml'),
23 'dir' => array('application/x-director'),
24 'dcr' => array('application/x-director'),
25 'doc' => array('application/msword'),
26 'dmg' => array('application/x-apple-diskimage'),
27 'dms' => array('application/octet-stream'),
28 'dvi' => array('application/x-dvi'),
29 'dxr' => array('application/x-director'),
30 'dll' => array('application/octet-stream', 'application/x-msdos-program'),
31 'eml' => array('message/rfc822'),
32 'exe' => array('application/x-msdos-program', 'application/octet-stream'),
33 'eps' => array('application/postscript'),
34 'gif' => array('image/gif'),
35 'gtar' => array('application/x-gtar'),
36 'gz' => array('application/x-gzip'),
37 'htm' => array('text/html'),
38 'html' => array('text/html'),
39 'hqx' => array('application/mac-binhex40'),
40 'ics' => array('text/calendar'),
41 'iso' => array('application/x-iso9660-image'),
42 'jar' => array('application/java-archive'),
43 'jpeg' => array('image/jpeg', 'image/pjpeg'),
44 'jpg' => array('image/jpeg', 'image/pjpeg'),
45 'jpe' => array('image/jpeg', 'image/pjpeg'),
46 'js' => array('application/x-javascript'),
47 'json' => array('application/json'),
48 'lha' => array('application/octet-stream'),
49 'log' => array('text/plain', 'text/x-log'),
50 'lzh' => array('application/octet-stream'),
51 'midi' => array('audio/midi'),
52 'mid' => array('audio/midi'),
53 'mif' => array('application/vnd.mif'),
54 'mp2' => array('audio/mpeg'),
55 'mp3' => array('audio/mpeg'),
56 'mov' => array('video/quicktime'),
57 'movie' => array('video/x-sgi-movie'),
58 'mpe' => array('video/mpeg'),
59 'mpeg' => array('video/mpeg'),
60 'mpg' => array('video/mpeg'),
61 'mpga' => array('audio/mpeg'),
62 'msi' => array('application/x-msi'),
63 'oda' => array('application/oda'),
64 'odb' => array('application/vnd.oasis.opendocument.database'),
65 'odc' => array('application/vnd.oasis.opendocument.chart'),
66 'odf' => array('application/vnd.oasis.opendocument.forumla'),
67 'odg' => array('application/vnd.oasis.opendocument.graphics'),
68 'odi' => array('application/vnd.oasis.opendocument.image'),
69 'odm' => array('application/vnd.oasis.opendocument.text-master'),
70 'odp' => array('application/vnd.oasis.opendocument.presentation'),
71 'ods' => array('application/vnd.oasis.opendocument.spreadsheet'),
72 'odt' => array('application/vnd.oasis.opendocument.text'),
73 'ogg' => array('application/ogg'),
74 'otg' => array('application/vnd.oasis.opendocument.graphics-template'),
75 'oth' => array('application/vnd.oasis.opendocument.web'),
76 'otp' => array('application/vnd.oasis.opendocument.presentation-template'),
77 'ots' => array('application/vnd.oasis.opendocument.spreadsheet-template'),
78 'ott' => array('application/vnd.oasis.opendocument.template'),
79 'pdf' => array('application/pdf', 'application/x-download'),
80 'php' => array('application/x-httpd-php'),
81 'php3' => array('application/x-httpd-php'),
82 'php4' => array('application/x-httpd-php'),
83 'php5' => array('application/x-httpd-php'),
84 'phps' => array('application/x-httpd-php-source'),
85 'phtml' => array('application/x-httpd-php'),
86 'png' => array('image/png', 'image/x-png'),
87 'pps' => array('application/vnd.ms-powerpoint'),
88 'ppt' => array('application/powerpoint'),
89 'ps' => array('application/postscript'),
90 'psd' => array('application/x-photoshop', 'image/x-photoshop'),
91 'qt' => array('video/quicktime'),
92 'ra' => array('audio/x-realaudio'),
93 'ram' => array('audio/x-pn-realaudio'),
94 'rar' => array('application/rar'),
95 'rm' => array('audio/x-pn-realaudio'),
96 'rpm' => array('audio/x-pn-realaudio-plugin', 'application/x-redhat-package-manager'),
97 'rss' => array('application/rss+xml'),
98 'rtf' => array('text/rtf'),
99 'rtx' => array('text/richtext'),
100 'rv' => array('video/vnd.rn-realvideo'),
101 'sea' => array('application/octet-stream'),
102 'shtml' => array('text/html'),
103 'sit' => array('application/x-stuffit'),
104 'smi' => array('application/smil'),
105 'smil' => array('application/smil'),
106 'so' => array('application/octet-stream'),
107 'swf' => array('application/x-shockwave-flash'),
108 'tar' => array('application/x-tar'),
109 'torrent' => array('application/x-bittorrent'),
110 'text' => array('text/plain'),
111 'tif' => array('image/tiff'),
112 'tiff' => array('image/tiff'),
113 'tgz' => array('application/x-tar'),
114 'txt' => array('text/plain'),
115 'wav' => array('audio/x-wav'),
116 'wbxml' => array('application/wbxml'),
117 'wmlc' => array('application/wmlc'),
118 'wpd' => array('application/vnd.wordperfect'),
119 'word' => array('application/msword', 'application/octet-stream'),
120 'xhtml' => array('application/xhtml+xml'),
121 'xht' => array('application/xhtml+xml'),
122 'xl' => array('application/excel'),
123 'xls' => array('application/excel', 'application/vnd.ms-excel'),
124 'xml' => array('text/xml'),
125 'xsl' => array('text/xml'),
126 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed')
127 );
128}
Note: See TracBrowser for help on using the repository browser.