I am using PrimeFaces 6.1 in my prject and implemented UploadedFile as described in PrimeFaces showcase and evreything works fine (I can upload and download the file as I wish) except the fileName.
e.g. when I try to upload the file from following path :
C:\Users\me\Documents\test.txt
and in Java code I try to get the fileName as follow:
FilenameUtils.getName(uploadedFile.getName());
the uploadedFile.getName() returns this string "C:UsersmeDocumentstest.txt" The whole path with out "" included drive Name! I did not override any classes and I did not change any functionality as well!
Does anyone have any idea how can I fix it?
regards Sara