How to use getimagesize() of image upload?

In this part:

getimagesize($path."https://wordpress.stackexchange.com/".$_POST['name']); 

the variable $path is an array. Try to use

getimagesize($path['path']."https://wordpress.stackexchange.com/".$_POST['name']); 

instead.

error code: 523