title: how to get duration of multiple video while uploading?
body: <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body onload="myFunction()"&gt;
  
  &lt;input type="file" id="myFile" multiple size="50" onchange="myFunction()"&gt;
  
  &lt;p id="demo"&gt;&lt;/p&gt;
  
  &lt;script&gt;
  function myFunction(){
      var x = document.getElementById("myFile");
      var txt = "";
      if ('files' in x) {
          if (x.files.length == 0) {
              txt = "Select one or more files.";
          } else {
              for (var i = 0; i &lt; x.files.length; i++) {
                  txt += "&lt;br&gt;&lt;strong&gt;" + (i+1) + ". file&lt;/strong&gt;&lt;br&gt;";
                  var file = x.files[i];
                  if ('name' in file) {
                      txt += "name: " + file.name + "&lt;br&gt;";
                  }
                  if ('size' in file) {
                      txt += "size: " + file.size + " bytes &lt;br&gt;";
                  }
              }
          }
      } 
      else {
          if (x.value == "") {
              txt += "Select one or more files.";
          } else {
              txt += "The files property is not supported by your browser!";
              txt  += "&lt;br&gt;The path of the selected file: " + x.value; // If the browser does not support the files property, it will return the path of the selected file instead. 
          }
      }
      document.getElementById("demo").innerHTML = txt;
  }
  &lt;/script&gt;
  
  &lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Use the Control or the Shift key to select multiple files.&lt;/p&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In this, they are listing video file name and size. but how to list the duration of all the videos uploaded with the file name and file size.i can get single video duration while uploading. but having difficulty in finding when its multiple videos.</p>