-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.php
More file actions
62 lines (60 loc) · 1.98 KB
/
types.php
File metadata and controls
62 lines (60 loc) · 1.98 KB
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
<?php
/*
* Default list of internet media types.
*/
return [/*
* Markup.
*/
[['html'], ['text/html']],
[['css'], ['text/css']],
[['txt'], ['text/plain']],
[['xml'], ['text/xml']],
/*
* Code.
*/
[['js'], ['application/javascript']],
[['json'], ['application/json']],
/*
* Files.
*/
[['zip'], ['application/zip', null]],
/*
* Audio.
*/
[['m4a'], ['audio/mp4', null]],
[['mp3'], ['audio/mpeg', null]],
[['ogg'], ['audio/ogg', null]],
[['opus'], ['audio/opus', null]],
[['vorbis'], ['audio/vorbis', null]],
[['wav'], ['audio/vnd.wave', null]],
[['webm'], ['audio/webm', null]],
/*
* Images.
*/
[['gif'], ['image/gif', null]],
[['jpg'], ['image/jpeg', null]],
[['jpeg'], ['image/jpeg', null]],
[['png'], ['image/png', null]],
[['svg'], ['image/svg+xml', null]],
/*
* Video.
*/
[['avi'], ['video/avi', null]],
[['m4v', 'mp4'], ['video/mp4', null]],
[['oggv'], ['video/ogg', null]],
[['mov'], ['video/quicktime', null]],
[['webmv'], ['video/webm', null]],
[['wmv'], ['video/x-ms-wmv', null]],
[['flv'], ['video/x-flv', null]],
/*
* Documents.
*/
[['pdf'], ['application/pdf', null]],
[['docx'], ['application/vnd.ms-word', null]],
[['xlsx'], ['application/vnd.ms-excel', null]],
[['pptx'], ['application/vnd.ms-powerpoint', null]],
[['oxps'], ['application/vnd.ms-xpsdocument', null]],
[['odt', 'fodt'], ['application/vnd.oasis.opendocument.text', null]],
[['ods', 'fods'], ['application/vnd.oasis.opendocument.spreadsheet', null]],
[['odp', 'fodp'], ['application/vnd.oasis.opendocument.presentation', null]],
[['odg', 'fodg'], ['application/vnd.oasis.opendocument.graphics', null]]];