What's the difference in these ways of determining uploaded file size in PHP?
<p>I came across this piece of code where programmer determines uploaded file size like this:</p>

<pre><code>$file_size = @filesize($_FILES[$upload_name]["tmp_name"]);
</code></pre>

<p>AFAIK one can simply do: </p>

<pre><code>$_FILES[$upload_name]["size"];
</code></pre>

<p>Are there reasons to use filesize() function over reading file size from $_FILES array?</p>
