title: asp.net multiple file upload control
body: <p>I have two <code>FileUpload</code> controls on a modal popup.  The first fileupload control works fine saving the file to the server.  However, the second fileupload control is exactly the same as the first but when it uploads the file it is uploaded as corrupted with 0 bytes.  Any ideas what could be happening?  Also I have a trigger on my updatepanel that fixes the issue with having an upload control inside of an updatepanel.</p>
  
  <p>My asp and c# are pretty simple</p>
  
  <pre><code>&lt;tr align="center"&gt;
   &lt;td&gt;Editable Doc&lt;/td&gt;
    &lt;td&gt;
       &lt;asp:FileUpload ID="uploadeditable" runat="server" /&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>here is the code behind</p>
  
  <pre><code> upload.PostedFile.SaveAs(path + "\\" + file);
  </code></pre>