title: How to store uploaded file into server path using either javascript or jquery
body: <p>I want to know that how can I store my uploaded file from my local system into one server path like(<code>'/newfolder/tests/'</code>) using either javascript or jquery,  Please provide me any solution for it as I'm new to this Files system.</p>
  
  <p><strong>html:</strong> </p>
  
  <pre><code>  &lt;input type="file" id="inputfile" name="inputfile"&gt;&lt;/input&gt;
  </code></pre>
  
  <p><strong>js:</strong></p>
  
  <pre><code>  var path =$('input[type=file]').val().replace(/C:\\fakepath\\/i, '');
  </code></pre>
  
  <p>is giving my uploaded file names only`, so that I need to store/save this variable on any server path(or any File system path),and I'm not using any database here, so that I can grab it from that path and can display it on my view page.</p>