besser wärs dann also so:
?
PHP-Code:
if(isset($_POST['upload']))
{
$tmp_name = $_FILES['image']['tmp_name'];
$mime = getimagesize($tmp_name);
if($mime['mime'] == "image/jpg")
{
...
Kommentar