Hello all .. ive managed to control the maximum width and height of my user's upload ... can i control the file size too with this? i dont want them to be able to upload pic's over 25k
$size = getimagesize($_FILES['the_file']['tmp_name']);
list($foo, $width, $bar, $height) = explode("\"", $size[3]);
if($width > $max_image_width)
{
$upload_image_error = true;
$message = "Your pic's cant be wider then 1000 <br><br>";
}
if($height > $max_image_height)
{
$upload_image_error = true;
$message = "Your Pic's cant be higher then 1000 <br><br>";
}
}