Richfaces fileupload - perform name check on 'add'
Posted
by Fortega
on Stack Overflow
See other posts from Stack Overflow
or by Fortega
Published on 2010-06-10T07:30:24Z
Indexed on
2010/06/10
7:32 UTC
Read the original article
Hit count: 341
fileupload
|richfaces
Hi,
I would like to perform a check on the name of a file being uploaded via richfaces fileupload component. I would like to check this as soon as the user selects the file. A file with a wrong name, should not appear in the list, and an alert() should be called specifying the filename was not correct.
Is there a way to check the add event, and to interrupt it when the filename is not correct?
© Stack Overflow or respective owner