title: Can I use jquery to read array of filenames from input type=file with the multiple attribute?
body: <p>Using jquery I can grab the entered filename (I just want the name, not the data) from </p>
  
  <pre><code>&lt;form enctype="multipart/form-data"&gt;
      &lt;input type="file" id="id_myfile"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>just by using</p>
  
  <pre><code>$('#id_myfile').val();
  </code></pre>
  
  <p>But what if I want to use the multiple attribute:</p>
  
  <pre><code>&lt;form enctype="multipart/form-data"&gt;
      &lt;input type="file" id="id_myfile" multiple="multiple"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>? </p>
  
  <p>Now I get a comma-separated list containing the several filenames. Isn't there a way to use an array for the input name</p>
  
  <pre><code>&lt;form enctype="multipart/form-data"&gt;
      &lt;input type="file" name="name_myfile[]" multiple="multiple"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and get the individual filenames into an array, to be read like this:</p>
  
  <pre><code>$('input[name="name_myfile[]"]').eq(0).val())
  $('input[name="name_myfile[]"]').eq(1).val())
  </code></pre>
  
  <p>etc? This method does not work and results in undefined errors.</p>
  
  <p>I've read here that this approach (the array name in the input, not the jquery part) works with submitted forms, several examples having been given using php and its builtin naming arrays ($_FILES, etc.). We are using classic ASP, but that's beside the point, since I'm talking client-side here. Can the filenames be put into an array in some way like I'm suggesting here to be read in JavaScript? Or, is there a completely different/better way to get a list of filenames from the user (I mean, letting the user browse, not having them type the names in, of course)?</p>