Added check in .upload() to make sure a valid receiver was passed in.