title: Javascript get number of files and their filenames from file input element with multiple attribute?
body: <p>I have a file input with the <code>multiple="multiple"</code> attribute to allow users to select multiple files at once. I would like to display selected file names and their count prior to upload however I'm not sure how to get this information from file input element using javascript?</p>
  
  <pre><code>&lt;input type="file" id="fileElementId" name="files[]" size="20" multiple="multiple" /&gt;
  </code></pre>
  
  <p>I've tried this:</p>
  
  <pre><code>document.getElementById('fileElementId').value
  </code></pre>
  
  <p>But this only returns one file name when I select multiple files.
  Using JavaScript is how do I retrieve the number of selected files and their names from a file input element with a <code>multiple</code> attribute?</p>