JQuery Map get index
<p>I am using the below code to get FILE OBJ > parse using jquery .map function.
The code is working as designed, but I need to get the INDEX for each object.   </p>

<pre><code>        $.map($('.multiupload').get(0).files, function (file) {

alert(this.length);                             

$('#fileList')
    .append('&lt;li&gt;&lt;label&gt;' + file.name + '&lt;/label&gt;&lt;span&gt;&lt;input name="tbDescription" type="text" id="' + file.name + '"&gt;&lt;/span&gt;' + listitems + '&lt;span class="btn btn-mini"&gt;remove&lt;/span&gt;&lt;/li&gt;');
</code></pre>

<p>I need to get the file (index) value so I can add it to the html output.</p>

<p><strong>alert(this.length);</strong><br>
always return a 0 no matter how many files I have selected.</p>

<p>If the user selects 3 files I want the html output to be</p>

<ul>
<li>file 0  some html here</li>
<li>file 1  some html here </li>
<li>file 2  some html here</li>
</ul>

<p>Who do I get the File index value from $.map($('.multiupload').get(0).files, function (file) ?</p>
