TypeError thrown

getimagesize(): Argument #1 ($filename) must be of type string, array given