FileUploadValidator.java 2014.11.19@17:03EST

This file does just as the name says. It validates file type, file name length, and file size (Max allowed is 10KB) before uploading the file. This code was located on javatutorials.com JSF2.2 File Upload Example