You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Guy Katz <gk...@allot.com> on 2006/08/31 18:07:30 UTC
supplement fileupload with client side validation for size and file type
This was probably asked before but I did not find a solution with a
quick search.
Can anyone recommend a good way to add client side validation for file
uploads (specifically size and maybe type validation)?
Thanks in advance.
Re: supplement fileupload with client side validation for size and
file type
Posted by Jonathan Harley <jo...@parkplatz.net>.
Guy Katz wrote:
> Can anyone recommend a good way to add client side validation for file
> uploads (specifically size and maybe type validation)?
There isn't an easy way to do this, because JavaScript doesn't
have access to files on the client (for obvious security reasons).
I guess you'd have to write a Java applet - trusted (signed)
applets can do it.
jon
--
.....................................................................
Dr Jonathan Harley .
. Email: jon@parkplatz.net
Zac Parkplatz Ltd . Office Telephone: 024 7633 1375
www.parkplatz.net . Mobile: 079 4116 0423