title: Locally save a pdf in the folder I want with javascript
body: <p>I have a user who will insert a pdf in my web application with:</p>
  <pre><code>&lt;input type=&quot;submit&quot; id=&quot;pdf&quot; class=&quot;btn&quot; value=&quot;Add&quot; name=&quot;btnAdd&quot; onclick=&quot;savePdf()&quot;&gt;
  </code></pre>
  <p>And I would like to get this file in my javascript function and save it in a folder of my project.</p>
  <p>My function :</p>
  <pre><code>function savePdf(){
          var pdf = document.getElementById(&quot;pdf&quot;);
          if(pdf.files.length != 0){
                      var file = pdf.files;
          }
  }
  </code></pre>
  <p>Think I have the right solution to recover the file but I have no idea how to save it to the folder I want. Hope you can redirect me to the functions that I have used thanks.</p>