Get the file names from multiple file upload field
<p>I am trying to write an ajax uploader using Jquery.
In the html I can write a multiple upload field like:</p>

<pre><code>&lt;input type='file' multiple='multiple' name='files[]'&gt;
</code></pre>

<p>But, how can I get the values from this field?
When I used:</p>

<pre><code>   $('input[type='file']').val();
</code></pre>

<p>or </p>

<pre><code>   $('input[type='file']').attr('value');
</code></pre>

<p>I only got the file name for the first file I selected to upload. Is there a way I can get an array containing all files?</p>
