Sure... it appears that you placed the validation code after the digital file upload code... so the digital file upload performs the behavior well before you validate. Flip them around to be sure you validate the input first. You may also want to do client side validation for such a form, as well.