Fix upload_file api call