Hallo Axel,
$filetype = exec ("file ".$HTTP_POST_FILES['uploaded_image']['tmp_name']);
Hier würde ich _dringend_ noch ein escapeshellarg() drum machen! http://de3.php.net/manual/de/function.escapeshellarg.php Sonst kommst Du in Teufels Küche.
Viele Grüße,
Christian