$_files['uploaded_img']['type'] vs getimagesize()
<p>I want check uploading file type, tell please where way is reliable for this, in where case obtain I more exactly info about file type? in this:</p>

<pre><code>$_files['uploaded_file']['type']
</code></pre>

<p>or in this:</p>

<pre><code>$imgType = getimagesize($_files['uploaded_file']['tmp_name']);
$imgType['mime'];
</code></pre>

<p>?</p>
