Re: Unsuccessful uploads

  •  03-16-2011, 9:01 PM

    Re: Unsuccessful uploads

    Hi Paul,
     
     I tested the AjaxUploader as your same config and page code under IE9,Chrome,Firefox 
    My IIS version is  IIS 7 
    it works fine.
    Can you tell me your application environment about IIS and Asp.net version?
     
    My test code is shown below
     
    1. <html xmlns="http://www.w3.org/1999/xhtml">  
    2. <head runat="server">  
    3.     <title></title>  
    4.     <script id="script" type="text/javascript">  
    5.         function Upload() {  
    6.             var uploadobj = document.getElementById('<%=Uploader1.ClientID %>');  
    7.             var count = uploadobj.getqueuecount();  
    8.             if (uploadobj.getqueuecount() > 0) {  
    9.                 uploadobj.startupload();  
    10.             }  
    11.         }  
    12.   
    13.   
    14.         function CuteWebUI_AjaxUploader_OnQueueUI(list) {  
    15.             //return false can hide the queue table.  
    16.             return false;  
    17.         }  
    18.         function CuteWebUI_AjaxUploader_OnError(msg) {  
    19.             alert("global error:" + msg);  
    20.             return false;  
    21.         }  
    22.         function CuteWebUI_AjaxUploader_OnTaskError(obj, msg, reason) {  
    23.             alert("file error:" + obj.FileName + " , " + msg);  
    24.             return false;  
    25.         }  
    26.     </script>  
    27. </head>  
    28. <body>  
    29.     <form id="form1" runat="server">  
    30.     <asp:ScriptManager ID="ScriptManager1" runat="server">  
    31.     </asp:ScriptManager>  
    32.     <div>  
    33.         <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
    34.             <ContentTemplate>  
    35.                 <asp:Button ID="UpdateButton" runat="server" OnClientClick="Upload()" Text="Upload" />  
    36.                 <CuteWebUI:Uploader runat="server" ID="Uploader1" ManualStartUpload="true" />  
    37.             </ContentTemplate>  
    38.         </asp:UpdatePanel>  
    39.     </div>  
    40.     </form>  
    41. </body>  
    42. </html>  
     
    1. <appSettings>  
    2.         <add key="CuteWebUI.AjaxUploader.TempDirectory" value="~/Temp"/>  
    3. </appSettings>  
    4.   
    5. <system.web>  
    6.     <httpModules>  
    7.         <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>  
    8.     </httpModules>  
    9.  </system.web>  
    10.   
    11.   
    12. <system.webServer>  
    13. <modules>  
    14.         <remove name="CuteWebUI.UploadModule" />  
    15.   
    16.           <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>  
    17.       </modules>  
    18. </system.webServer>  
     
     Please download the latest version of AjaxUploader and ref the 'Framework 2.0-Csharp-MicrosoftAjax' demo.
     
    Regards,
    Jeff 
     
View Complete Thread