However, a file upload form validation cannot depend on this value only. ... The attacker can now upload a file with a jpg extension, which contains PHP code. ...
Add Swiss Knife Form Validation to your forms in Dreamweaver with the Universal Form Validator PHP! Choose from many predefined validation rules like url, e-mail, ...