I am trying to get the file size of an image. If I upload below a 5 MB size image, then this function is properly calculating image size. But if the image file size is exceeded then it is not calculating image file !
$size = filesize($_FILES['file']['tmp_name']);
I am not understanding what the problem is.