Hi everyone!
I have a form and a script that validates if fields are blank and if email address and phone number is accurate but I would like to validate one more thing. There is a file upload field and I would like to make sure that only picture files are being uploaded.
I've tried to find a script to exempt file types from being uploaded and I've found a few that do that but I cant implement them because they conflict with my current validation script.
The one that I have now that checks the other fields is:
Then there is the
in the form tag
What should I add to the code to validate the file upload fields (named upload, upload2, upload3, upload4, and upload5)? Thanks!!
Best Regards,
Adam