title: File upload asp classic,js
body: <p>I need to upload a file using JS, </p>
  
  <pre><code>&lt;input type="file" name="picUpload" id="picUpload" /&gt;
  
   &lt;% set pic = Request.Form("picUpload")
  set Amount = Request.Form("tbAmountProduct")
  set desc = Request.Form("tbDescProduct")
  set price= Request.Form("tbPriceProduct")
  set pcId =Request.Form("ddlCategoryForProd")
  set pbId =Request.Form("ddlBrandForProd")
  set pName=Request.Form("tbProductName")
  IF((bName&lt;&gt;"")AND(Amount&lt;&gt;"")AND(desc&lt;&gt;"")AND(price&lt;&gt;"")AND(pcId&lt;&gt;"-1")AND(pbId&lt;&gt;"-1")AND (pic&lt;&gt;"")) THEN
  
  
      set con = Server.CreateObject("ADODB.Connection")
      con.open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &amp; Server.MapPath("WebData/DB.mdb") &amp; ";"  
      set rs = con.Execute("Select * FROM Products WHERE ProductName = '"&amp;pName&amp;"' and mode= true")
          IF rs.EOF = true then           
          SET sql ="Insert Into Products (ProductName,SupID,CatID,Amount,Price,Pic,Description) Values( '"&amp;pName&amp;"','"&amp;pbId&amp;"','"&amp;pcId&amp;"','"&amp;Amount&amp;"','"&amp;price&amp;"','"&amp;pic&amp;"','"&amp;desc&amp;"')"
          SET rs =con.Execute(sql)%&gt;
  </code></pre>
  
  <p>How can I get the file's path and link it to the database and to a specific folder in the project's folder?
  Thank you very much.</p>