![Picture of Manuel Lemos Picture of Manuel Lemos](/picture/user/1.jpg)
Manuel Lemos - 2007-06-06 23:06:01 -
In reply to message 1 from mlmarius
You could check the file names or use the ACCEPT parameter to specify the accepted MIME types. But that would not be a very reliable form of validation because the users could name a file with a certain extension that does not match the content.
On the browser side it is not possible to validate the file contents because Javascript is not allowed to read files.
On the server side, you can read the files and check if their real type is what you expect but that forms class does not do that because it can be very complicated. Maybe that is a good idea to implement with a separate custom plug-in class.