What is the right way to begin validation for data sent by a multipart/form form. I'll be receiving a file and 1 text identifier from a hidden field.
I can handle checking for file type and size and all else. What I'm asking is the initial code. Form a normal form I usually do this:
if (isset($_POST['myField]) && $_POST['myField'] == 1)
//Proceed with the rest
echo 'Some Error';
What's the best way to do it when it come to multipart/form data? How do u pros / experienced guys do it?