hallo ik heb het volgende script om te controleren of het bestand wel een .doc, .html, .jpg of .pdf is, maar het werkt niet:
if($_FILES['bestand']['type'] == "application/msword" || $_FILES['bestand']['type'] == "text/html" || $_FILES['bestand']['type'] == "image/jpeg" || $_FILES['bestand']['type'] == "application/pdf")
{
$result = 1;
}
else
{
$result = 2;
}
maar wat voor soort bestand ik ook toevoeg, $result is altijd 2
Wat heb ik fout gedaan..
alvast bedankt,
bartosiej
if($_FILES['bestand']['type'] == "application/msword" || $_FILES['bestand']['type'] == "text/html" || $_FILES['bestand']['type'] == "image/jpeg" || $_FILES['bestand']['type'] == "application/pdf")
{
$result = 1;
}
else
{
$result = 2;
}
maar wat voor soort bestand ik ook toevoeg, $result is altijd 2
Wat heb ik fout gedaan..
alvast bedankt,
bartosiej