How to check if user uploaded a file in PHP?
<p>I do some form validation to ensure that the file a user uploaded is of the right type. But the upload is optional, so i want to skip the validation if he didn't upload anything and submitted the rest of the form. How can I check if he uploaded something or not? Will <code>$_FILES['myflie']['size'] &lt;=0</code> work?</p>
