getimagesize

Laszl0w

Well-Known Member
Oct 10, 2015
217
149
143
Code:
if(isset($_POST["submit"]))
    {
    $check = getimagesize($_FILES["fileToUpload"]["tmp_name"]);
    if($check !== false) {
        echo "Ez a fájl egy kép - " . $check["mime"] . ".<br>";//this is a picture
        $uploadOk = 1;
    } 
    else
    {
        echo "Ez a fájl nem kép.<br>";//This is not a picture
        $uploadOk = 0;
    }
}

It allows:
jpg,jpeg,gif,png and some bmps
but it doesnt allow some bmp files. why?
 
Top