I've got a form with a 'File' type input, which submits to:
action="imguploadscr.php"
In that page, I have this:
Now when I upload a small JPG file, for example 200kb, it works fine. However, when I try a file that's big, ie. around 5mb+, it fails, giving the error "Sorry, only JPEG files are permitted", when it is definitely a JPG file.
Anyone got any idea what's going on here?
Thanks,
Jon
action="imguploadscr.php"
In that page, I have this:
Code:
if(isset( $Submit ))
{ //If the Submitbutton was pressed do:
if ($_FILES['imagefile']['type'] == "image/jpeg"){
// do image processing stuff
} else {
echo "Sorry, only JPEG files are permitted. (".$_FILES['imagefile']['name'].")<br>";
}
}
Now when I upload a small JPG file, for example 200kb, it works fine. However, when I try a file that's big, ie. around 5mb+, it fails, giving the error "Sorry, only JPEG files are permitted", when it is definitely a JPG file.
Anyone got any idea what's going on here?
Thanks,
Jon