FileUpload Returning Null
<p>I have a FileUpload in my web application, but when "Submit" is clicked it seems to lose the file or something but not the name. So if for instance I have C:\me\Documents\myfile.jpg, I am able to capture the name myfile.jpg but when evaluating this line says "Could not find file" (in debug mode when I hover over this line)...</p>

<p>This is in my submit button</p>

<pre><code> if ((myID == 0 || rbUploadImg.Checked == true) &amp;&amp; fuImage.PostedFile.FileName.Length &gt; 0)
</code></pre>

<p>Here is the code for the aspx and also checkboxes in .cs that determine weather to show the uploader or not</p>

<pre><code>     &lt;asp:Panel ID="pnlImageEdit" runat="server" Visible="false"&gt;
         &lt;table id="tblShowImage" border="0" cellpadding="0" cellspacing="20" runat="server"&gt;
         &lt;tr&gt;
            &lt;td&gt;
             &lt;asp:Image ID="Image1" runat="server" /&gt;
             &lt;/td&gt;
             &lt;td&gt;
                 &lt;div class="mytyle"&gt;
                    &lt;asp:RadioButton ID="rbCurrentImage" Text="Keep Current Image" runat="server" GroupName="Product Image" AutoPostBack="True" OnCheckedChanged="rbCurrentImage_CheckedChanged" Checked="True" /&gt;

&lt;asp:RadioButton ID="rbUploadImg" Text="Upload New Image" runat="server" GroupName="Image" AutoPostBack="True" OnCheckedChanged="rbImage_CheckedChanged" /&gt;
                                &lt;/div&gt;
                      &lt;/table&gt;
                &lt;/asp:Panel&gt;
  &lt;asp:Panel ID="pnlImageAdd" runat="server" Visible="false"&gt;
                    &lt;div&gt;                        
  Select an Image :&lt;asp:FileUpload ID="fuImage" runat="server" EnableViewState="true" /&gt;

&lt;asp:RegularExpressionValidator 
ID="RegularExpressionValidator1" 
runat="server" 
ControlToValidate="fuCollectionImage"
CssClass="Error" Display="dynamic" ValidationExpression=".*(\.[Jj][Pp][Gg]|\.[Gg][Ii][Ff]|\.[Jj][Pp][Ee][Gg]|\.[Pp][Nn][Gg])"
 ErrorMessage="Please select a valid JPEG, JPG, PNG or GIF image"&gt;
&lt;/asp:RegularExpressionValidator&gt;
                    &lt;/div&gt;
                &lt;/asp:Panel&gt;
</code></pre>

<p>In my cs file for the checkboxes</p>

<pre><code>protected void rbNewImage_CheckedChanged(object sender, EventArgs e)
{
    pnlImageAdd.Visible = true;
}

protected void rbImage_CheckedChanged(object sender, EventArgs e)
{

}
</code></pre>

<p>Thank you for your help</p>
