test uploadphoto