📅  最后修改于: 2022-03-11 14:53:45.893000             🧑  作者: Mango
$mime = mime_content_type($file);
if(strstr($mime, "video/")){
// this code for video
}else if(strstr($mime, "image/")){
// this code for image
}