Adds generic `upload` method