code: public static boolean validateFileSize(final FileItemWrap newFile, final long maxFileSize) {
  		// If newFile to validate is null, then return false
  		if (newFile == null) {
  			return false;
  		}
  		// If maxFileSize to validate is zero or negative, then assume newFile is valid
  		if (maxFileSize < 1) {
  			return true;
  		}
  
  		return (newFile.getSize() <= maxFileSize);
  	}
docs: Checks if the file item size is within the supplied max file size.
  
  @param newFile the file to be checked, if null then return false
  otherwise validate
  @param maxFileSize max file size in bytes, if zero or negative return
  true, otherwise validate
  @return {@code true} if file size is valid.