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.
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.