server: test upload handler. ref: implement encoding interfaces