I try working with ajax image upload with some width height restriction. To do i use php getimagesize() to return size of the image. Once i uploaded image , i pass the image url to that function. but sometimes getimagesize return width and height as null .\[code\]... list($width, $height) = getimagesize($uploadDirectory . $filename . '.' . $ext); ...\[/code\]I tried with jpg images ....it fails to return width height at first try when uploaded.Then it returns width height at second try. Here image is uploaded to the destination folder all the time.
As you see in attached image, I can able to get image uploaded path. But getimagesize function does not return width height on first time. Kindly advice on this