The issue that I am having is that my asp:FileUpload function is constantly returning that there is no file entered and if I use the FileUpload.HasFile function it always returns false. What has me so confused is that about a month ago it was working fine and I havent touched any code that would impact it at all since then, I even rolled back the code (of the entire project) with source control to last version where I knew the upload control was working and still no go.
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Edit.ascx.cs" Inherits="AGP.Modules.AssetManager.Edit" %>
<%@ Register TagPrefix="dnn" TagName="label" Src="~/controls/LabelControl.ascx" %>
<div id="dnnEditBasicSettings">
<div><a href=""><%=LocalizeString("ExpandAll")%></a></div>
<h2 id="dnnSitePanel-BasicSettings">
<a href="">
<%=LocalizeString("BasicUserInfo")%></a></h2>
<fieldset>
<div>
<dnn:label ID="lblPicFile" runat="server" text="File path for Picture" HelpText="Enter the file path for the picture to upload" />
<asp:FileUpload ID="fuPic" runat="server" Visible="false" Enabled="true" />        
<asp:LinkButton ID="btnSavePic" runat="server" Text="Upload" OnClick="btnSave_Click" CssClass="dnnPrimaryAction" Visible="false" />
</div>
(several more <div> containers)
</fieldset>
</div>
That is the control code then the code behind for the submit button is
protected void btnSave_Click(object sender, EventArgs e)
{
if (fuPic.HasFile)
{
Picture pic = new Picture();
pic.Pic = fuPic.FileBytes;
pic.ID = AssetId;
AssetController.SetPic(pic);
}
}
I am not sure what else to include but will be happy to give any details that will help.
Oh and I am running on a local IIS install with Win 8.1 and DNN Community 07.01.02 and SQL express 2012 with all current updates.
Thanks for any help you might have.