getting error with connect when uploading pictures