Update AbstractUpload.java

Now using String.getFileExtension