I am using the INPUT tag to allow the user to upload a file to the web server. When I upload an image file, it uploads fine. However, when I try upload a pdf, i get the message "[FILENAME] not found as file or resource." Does anyone have any idea how I can upload a pdf through the INPUT tag on a webpage? I don't think it's the file size because the one I am trying to upload is about 100KB and I am able to upload images that are around 750KB.
Below is a snippet of the code I am using. AliasFileName is simply a randomly generated file name with the same extension of the file that the user is trying to upload. Any help would be greatly appreciated!!!
<asp:label id="Label1" runat="server"><span style="COLOR: red">* </span>Document: </asp:label>
<input id="txtNewDocument" style="FONT-SIZE: 9pt; WIDTH: 470px" type="file" name="txtNewDocument" runat="server">
<asp:button id="btnUploadDocument" Runat="server" Text="Upload Document"></asp:button>
Dim Document As System.Web.UI.HtmlControls.HtmlInputFile = Me.FindControl("txtNewDocument")