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 =
Use php filesize function.You can get the bytes of the file
$imgsize = filesize( '/home/projects/site/1.jpg' );