Added `upload_file()` to api.