forked from owner888/phpspider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinc_mimetype.php
28 lines (27 loc) · 1.01 KB
/
inc_mimetype.php
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
<?php
/**
* 如需添加下载文件识别,这里是Content-type常用对照表
* http://tool.oschina.net/commons
*/
$GLOBALS['config']['mimetype'] = array(
'application/octet-stream' => 'binary',
//'text/xml' => 'xml',
//'text/html' => 'html',
//'text/htm' => 'htm',
//'text/plain' => 'txt',
'image/png' => 'png',
'image/jpeg' => 'jpg',
'image/gif' => 'gif',
'image/tiff' => 'tiff',
'image/x-jpg' => 'jpg',
'image/x-icon' => 'icon',
'image/x-img' => 'img',
'application/pdf' => 'pdf',
'audio/mp3' => 'mp3',
'video/avi' => 'avi',
'video/mp4' => 'mp4',
'application/x-msdownload' => 'exe',
'application/vnd.iphone' => 'ipa',
'application/x-bittorrent' => 'torrent',
'application/vnd.android.package-archive' => 'apk',
);