Error message when upload complete

Last post 02-22-2013, 2:22 AM by endif. 2 replies.
Sort Posts: Previous Next
  •  02-18-2013, 5:39 PM 76888

    Error message when upload complete

    I'm getting this error when the upload is complete:

     

    It does not execute the "file uploaded" event, but the image is in the temp directory. This is in a Framework 4.0 environment using VS 2010 and C#. The page has code in a separate file, but it does not work even if it is in-page.

     

    The confiming message shows the file upload was cancelled, but it was not.

     

    Can you help?

    thanks,

    Stephanie 

  •  02-19-2013, 11:53 AM 76890 in reply to 76888

    Re: Error message when upload complete

    Hi endif,

     

    Please try the example page below, does it get the same problem? Does it happens with all files? or just special size/extension?

     

    1. <%@ Page Language="C#" %>  
    2.   
    3. <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>  
    4. <!DOCTYPE html>  
    5. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head runat="server">  
    7.     <title></title>  
    8. </head>  
    9. <body>  
    10.     <form id="form1" runat="server">  
    11.         <CuteWebUI:UploadAttachments ID="uploader1" runat="server">  
    12.         </CuteWebUI:UploadAttachments>  
    13.     </form>  
    14. </body>  
    15. </html>  
     

    Regards,

     

    Ken 

  •  02-22-2013, 2:22 AM 76906 in reply to 76890

    Re: Error message when upload complete

    I found the problem. For some reason, on this page, the button was calling form_load and getting lost there before the UploadPhoto_FileUploaded method was called.

    thanks,

    Stephanie 

View as RSS news feed in XML