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.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)