Answers for "php check if post video file or image"

PHP
0

php check if file is video

$mime = mime_content_type($file);
if(strstr($mime, "video/")){
    // this code for video
}else if(strstr($mime, "image/")){
    // this code for image
}
Posted by: Guest on August-23-2020

Code answers related to "php check if post video file or image"

Browse Popular Code Answers by Language