Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hey together,

i want to have a upload area for apps(iPhone) in a ASP.NET page. The .plist file is no problem, but when i want to upload the .ipa file, the browser shows 'Webpage not found'.
C#
<asp:FileUpload ID="FileUpload_App" runat="server" /><br />
<asp:Button ID="Button_AddAppUpload" runat="server" Text="Add App" OnClick="Button_AddAppUpload_OnClick" />

C#
public String tempApps = "someString";
protected void Button_AddAppUpload_OnClick(object sender, EventArgs e)
{
  if (FileUpload_App.HasFile)
    {
       FileUpload_App.PostedFile.SaveAs(tempApps + FileUpload_App.FileName);//breakpoint
    }
}


I don´t have any idea, can someone help me and explain this behavior to me? Is it the fileupload causing my problem or is it the ipa-file itself, cause the breakpoint in the method Button_AddAppUpload_OnClick is not reached.
Posted
Comments
Sergey Alexandrovich Kryukov 6-Aug-12 13:10pm    
Upload is upload. How different file types can affect it, ever? Compare your codes in both cases...
--SA
kuti, ger 7-Aug-12 1:23am    
It is one method, one simple coding line for one upload control. Nothing else. And all filetypes(png,doc,pfd,exe,plist,...)can be uploaded except .ipa.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900