设置真实的文件类型
boolean|Core_Upload Core_Upload::check_real_mime( )
boolean|Core_Upload
protected function check_real_mime()
{
// 真实类型检测
if ($this->config['mimes_check'])
{
$type = File::mime($this->file['tmp_name']);
if (false===$type)
{
throw new Exception('Upload error type', Upload::ERR_EXTENSION);
}
else
{
$this->file['type'] = $type;
}
}
return $this;
}