title: How do I get a mp3 files info duration, title, image etc in javascript
body: <p>I understand how to get a mp3 files info in Java but I'd like to attempt to put less strain on the server by implementing it in javascript. I am new to javascript and don't understand the syntax well. I found this <a href="https://www.npmjs.com/package/jsmediatags" rel="nofollow">https://www.npmjs.com/package/jsmediatags</a> and It looks like what I need but I tried to implement it and it didn't work 
  basically I have a form like so </p>
  
  <pre><code>&lt;form action="jsmediatags.read(document.getElementById("audiofile"));"&gt;
      &lt;input type="file" name="audio" accept="audio/*"&gt;
      &lt;input type="submit" name="submit" value="add music"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I would like for <code>jsmediatags.read()</code> to pull the necessary info from the file on submit then send it to the server. Am I implementing this API in the wrong way? Is there a way to do it without the API?</p>