title: How to save image on Server using Javascript
body: <p>I want to save selected image on server images folder </p>
  
  <p>like <a href="http://url/public_html/images/" rel="nofollow noreferrer">http://url/public_html/images/</a></p>
  
  <p>HTML Code:</p>
  
  <pre><code>&lt;input type="file" id="files" name="files[]" multiple /&gt;
  &lt;button type="button" id="btnInsertAuto"  class="btn btn-primary"&gt;Submit&lt;/button&gt;
  </code></pre>
  
  <p>Javascript</p>
  
  <pre><code>$('#btnInsertAuto').on('click', function () {
    var  Name = $('#Name1').val();
    var Note = $('#Note2').val();
    var image=$('#files').val();;
  
    document.getElementById("Name1").value = "";
    document.getElementById("Note2").value = "";
    document.getElementById("files").files[0].name
  
    insertAutoKey(Name, Note, image);
  
  });
  </code></pre>