teste mal so.
PHP-Code:
$datei_typen = array("image/gif", "image/jpg", "image/jpeg", "image/pjpg");
// ...
elseif(!in_array($_FILES['file']['type'], $dateitypen))
// ...
Kommentar