title: Upload files on remote server through html & javascript
body: <p>I am trying to upload files through html page in our unix based server but I don't know how to take the files on remote server &amp; save files there.</p>
  
  <p>I write the following code please help me to connect it.   </p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
  
  function Upload()
  {
  
  var filename = document.getElementById("filename").value;
  
  var storepath = "HOSTURL/Foldername";
  
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form action="" method="post" enctype="multipart/form-data" &gt;
      &lt;input type="file" name="filename" /&gt;
      &lt;input type="submit" value="Upload" onclick="Upload" /&gt;
  &lt;/form
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>