Update UploadServer.java

Using Data object as reference instead of extending the class