PHP Verifique el tamaño de la imagen antes de la carga
$image_size = $_FILES["inputname"]["size"];
if($image_size > 10000){
echo "size too large";
}
Programming Is Fun
$image_size = $_FILES["inputname"]["size"];
if($image_size > 10000){
echo "size too large";
}