Fix the flv mime type mapping
This commit is contained in:
parent
f12e2891e5
commit
af263bc2a5
@ -251,21 +251,44 @@ if (!function_exists('mb_strlen')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const MIME_TYPE_MAP = [
|
const MIME_TYPE_MAP = [
|
||||||
'jpg' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png',
|
'jpg' => 'image/jpeg',
|
||||||
'tif' => 'image/tiff', 'tiff' => 'image/tiff', 'ico' => 'image/x-icon',
|
'gif' => 'image/gif',
|
||||||
'swf' => 'application/x-shockwave-flash', 'video/x-flv' => 'flv',
|
'png' => 'image/png',
|
||||||
'svg' => 'image/svg+xml', 'pdf' => 'application/pdf',
|
'tif' => 'image/tiff',
|
||||||
'zip' => 'application/zip', 'gz' => 'application/x-gzip',
|
'tiff' => 'image/tiff',
|
||||||
'tar' => 'application/x-tar', 'bz' => 'application/x-bzip',
|
'ico' => 'image/x-icon',
|
||||||
'bz2' => 'application/x-bzip2', 'txt' => 'text/plain',
|
'swf' => 'application/x-shockwave-flash',
|
||||||
'asc' => 'text/plain', 'htm' => 'text/html', 'html' => 'text/html',
|
'flv' => 'video/x-flv',
|
||||||
'css' => 'text/css', 'js' => 'text/javascript',
|
'svg' => 'image/svg+xml',
|
||||||
'xml' => 'text/xml', 'xsl' => 'application/xsl+xml',
|
'pdf' => 'application/pdf',
|
||||||
'ogg' => 'application/ogg', 'mp3' => 'audio/mpeg', 'wav' => 'audio/x-wav',
|
'zip' => 'application/zip',
|
||||||
'avi' => 'video/x-msvideo', 'mpg' => 'video/mpeg', 'mpeg' => 'video/mpeg',
|
'gz' => 'application/x-gzip',
|
||||||
'mov' => 'video/quicktime', 'flv' => 'video/x-flv', 'php' => 'text/x-php',
|
'tar' => 'application/x-tar',
|
||||||
'mp4' => 'video/mp4', 'ogv' => 'video/ogg', 'webm' => 'video/webm',
|
'bz' => 'application/x-bzip',
|
||||||
'webp' => 'image/webp', 'bmp' =>'image/x-ms-bmp', 'psd' => 'image/vnd.adobe.photoshop',
|
'bz2' => 'application/x-bzip2',
|
||||||
|
'txt' => 'text/plain',
|
||||||
|
'asc' => 'text/plain',
|
||||||
|
'htm' => 'text/html',
|
||||||
|
'html' => 'text/html',
|
||||||
|
'css' => 'text/css',
|
||||||
|
'js' => 'text/javascript',
|
||||||
|
'xml' => 'text/xml',
|
||||||
|
'xsl' => 'application/xsl+xml',
|
||||||
|
'ogg' => 'application/ogg',
|
||||||
|
'mp3' => 'audio/mpeg',
|
||||||
|
'wav' => 'audio/x-wav',
|
||||||
|
'avi' => 'video/x-msvideo',
|
||||||
|
'mpg' => 'video/mpeg',
|
||||||
|
'mpeg' => 'video/mpeg',
|
||||||
|
'mov' => 'video/quicktime',
|
||||||
|
'flv' => 'video/x-flv',
|
||||||
|
'php' => 'text/x-php',
|
||||||
|
'mp4' => 'video/mp4',
|
||||||
|
'ogv' => 'video/ogg',
|
||||||
|
'webm' => 'video/webm',
|
||||||
|
'webp' => 'image/webp',
|
||||||
|
'bmp' =>'image/x-ms-bmp',
|
||||||
|
'psd' => 'image/vnd.adobe.photoshop',
|
||||||
'mkv' => 'video/x-matroska'
|
'mkv' => 'video/x-matroska'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user