Vérifiez quel type de fichier a été téléchargé PHP

$allowed = array('gif', 'png', 'jpg');
$filename = $_FILES['video_file']['name'];
$ext = pathinfo($filename, PATHINFO_EXTENSION);
if (!in_array($ext, $allowed)) {
    echo 'error';
}
takemetothelakeswhereallthepoetswenttodie