I am using PrimeFaces v3.5 to upload the files in my windows machine using Firefox browser. event.getFile().getFileName() is returning filename with complete pa
event.getFile().getFileName()
Commons IO offers FilenameUtils#getName() for the exact purpose.
String filename = FilenameUtils.getName(event.getFile().getFileName());