PHP Validation of _FILES
<p>I have a form through which users can upload an image. On my home machine I was validating like so:</p>

<pre><code>if(isset($_FILES['image']['name']))
</code></pre>

<p>And it was working fine, but it fails on my work machine. I need to use:</p>

<pre><code>$_FILES['image']['name'] != ''
</code></pre>

<p>I've tried empty($_FILES['image']), but this doesn't work either. 
I was just wondering why this would be the case?</p>
