private void checkUniqueNames(PFile file) {
        String name = file.getComponent(Elem.NAME);
        String ext = file.getComponent(Elem.EXT);

        Integer count = 0;

        for (String fileName : files) {
            if (fileName.equals(name + "." + ext)) {
                count++;
            }
        }

        if (count > 1) {
            model.addRow(new Object[]{name, Data.text("uploadcheck-error-dupe")});
        }
    }