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 = [ | ||||
|     'jpg' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png', | ||||
|     'tif' => 'image/tiff', 'tiff' => 'image/tiff', 'ico' => 'image/x-icon', | ||||
|     'swf' => 'application/x-shockwave-flash', 'video/x-flv' => 'flv', | ||||
|     'svg' => 'image/svg+xml', 'pdf' => 'application/pdf', | ||||
|     'zip' => 'application/zip', 'gz' => 'application/x-gzip', | ||||
|     'tar' => 'application/x-tar', 'bz' => 'application/x-bzip', | ||||
|     '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', | ||||
|     'jpg' => 'image/jpeg', | ||||
|     'gif' => 'image/gif', | ||||
|     'png' => 'image/png', | ||||
|     'tif' => 'image/tiff', | ||||
|     'tiff' => 'image/tiff', | ||||
|     'ico' => 'image/x-icon', | ||||
|     'swf' => 'application/x-shockwave-flash', | ||||
|     'flv' => 'video/x-flv', | ||||
|     'svg' => 'image/svg+xml', | ||||
|     'pdf' => 'application/pdf', | ||||
|     'zip' => 'application/zip', | ||||
|     'gz' => 'application/x-gzip', | ||||
|     'tar' => 'application/x-tar', | ||||
|     'bz' => 'application/x-bzip', | ||||
|     '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' | ||||
| ]; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user