type=file; validate_fields() not working. - stanislavf - Mar 10th, 2014
Trying to use "required, File1, error message" in the validate fields api. Just trying to make sure they actually selected a file. This does not work (validate for email, checkbox, text works as expected).
I can add my own small chunk of PHP to check if $_FILES["file"]["name"] is not null, but I would have expected that the "required" parameter would have done the same. I am currently just modifying the sample code for testing.
Any clues? Thanks ahead of time.
|