Re: FormFile file type validation

2006-01-16 Thread Laurie Harper
Daniel Kies wrote: Does anyone know of a validator that can be plugged into the validator framework that will check file types for FormFile? This would be so a user can't upload certain extensions like .exe and the application will catch it.. There's nothing in the standard set of validation r

RE: FormFile file type validation

2006-01-16 Thread David G. Friedman
Daniel, I remembered reading about a Java class which could do that using a file's "magic numbers." I think this library was the one I am thinking about. Using it, you could determine the file information in your Form bean, I think. It was called "ffident — Java metadata extraction / file for