Fix upload_file_to_service after refactoring

Change-Id: Ibb88d11f3d1e682843452a38c9818899ed2b6ceb