title: how to solve postback issue file upload control's path does not exist
body: <p>I am uploading files using asp.net fileupload control , whenever postback occurs due to other field's on the page, selected path in file upload control lost. I'm using multiple file upload control on page for diff. Purpose how to solve this problem? Please help with simple &amp; suitable example dear.</p>
  
  <pre><code>string file = Path.GetFileName(UploadSalesServiceCopy.PostedFile.FileName);
  string filepath2 = ConfigurationManager.AppSettings["ServerMapImgPath"].ToString();//.......local drive path via web config
  string subPath = filepath2 + file;
  bool IsExists = System.IO.Directory.Exists(Server.MapPath(subPath));
  if (!IsExists)
      System.IO.Directory.CreateDirectory(Server.MapPath(subPath));
  
  if (UploadSalesServiceCopy.HasFile)
  {
      //UploadSalesServiceCopy.SaveAs(subPath);//PHYSICAL path
      UploadSalesServiceCopy.SaveAs(Server.MapPath(subPath));//server path             
  }
  else
  {
      ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "javascript", "alert('No File Selected.')", true);
  }
  </code></pre>