[httpserver] return new ids in upload_api