I want to know the image size in mb but before ulpload do the same. I have:
$errors = array(); $image = $_FILES[\'image\'][\'name\']; $file_tmp =
Before upload you can check like so:
$file_tmp = $_FILES['image']['tmp_name']; $size = filesize($file_tmp);
But do you realize you are expecting the image to be less than a kilobyte in your code example?