This is a migrated thread and some comments may be shown as answers.

Async Upload resets or stops handling large files

4 Answers 110 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Shane
Top achievements
Rank 1
Shane asked on 23 Mar 2011, 06:08 AM
I have an issue where asyncupload simply resets or stops during large uploads.

I have a test harness here.

I have successfully uploaded a 18MB file but nothing over this.  The execution timeout is 3600 and the maxRequestLength is large.

http://regrowth2010.c6.ixwebhosting.com/

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
     <style type="text/css">
    div.RadUpload .ruFakeInput
    {
        visibility: hidden;
        width: 0;
        padding: 0;
    }
    div.RadUpload .ruFileInput
    {
        width: 1;
    }
     </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        var Nbre = 0;
        function getRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }
        function CloseWindow() {
            var wnd = getRadWindow();
            var openerPage = wnd.BrowserWindow;
            openerPage.Importer_Callback();
            wnd.close();
        }
        function validateRadUpload1(source, arguments) {
            arguments.IsValid = $find('RadUpload1').validateExtensions();
        }
  
        function validateFailed(source, arguments) {
  
        }
  
        function fileSelected(source, arguments){
  
        }
  
        function fileUploaded(sender, args) {
            document.forms[0].btnSubmit.style.display= 'inline';
        
  
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
   
    <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Vista">
    </telerik:RadSkinManager>
          
    <telerik:RadProgressManager runat="server" ID="RadProgressManager1" /> 
        <div>
          <table>
            <tr>
                <td>Firstname:</td>
                <td>
                    <asp:TextBox ID="tbFirstName" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Surname:</td>
                <td>
                    <asp:TextBox ID="tbSurname" runat="server"></asp:TextBox></td>
            </tr>  
            <tr>
                <td>Act/DJ Name:</td>
                <td>
                    <asp:TextBox ID="tbActName" runat="server"></asp:TextBox></td>
            </tr>          
          </table>
            
          <telerik:RadAsyncUpload runat="server" Localization-Select="Upload" ID="AsyncUpload1" MaxFileSize="300000000" OnClientFileUploaded="fileUploaded" ReadOnlyFileInputs="true" InitialFileInputsCount="1" MaxFileInputsCount="1" ControlObjectsVisibility="None" OnClientFileSelected="fileSelected" OnClientValidationFailed="validateFailed" /> 
            
        </div>
        <div><telerik:RadProgressArea runat="server" ID="RadProgressArea1" ProgressIndicators="TotalProgressBar,TotalProgressPercent,RequestSize,TimeElapsed,TimeEstimated,CurrentFileName,TotalProgress"  /></div
              
        <asp:Button ID="btnSubmit" runat="server" Text="Submit Demo" style="display:none" OnClick="buttonSubmit_Click"/>
    </form>
</body>
</html>

4 Answers, 1 is accepted

Sort by
0
Shane
Top achievements
Rank 1
answered on 23 Mar 2011, 07:22 AM
Have installed the code on a different hosting service and the behavior seems to change.  The progress bar does not display with large files?

http://sandbox.net.134.gppnetwork.com/
0
Genady Sergeev
Telerik team
answered on 24 Mar 2011, 03:55 PM
Hi Shane,

Could you give us some instructions on how to find where is RadAsyncUpload located in the live url.

Best wishes,
Genady Sergeev
the Telerik team
0
Michael
Top achievements
Rank 1
answered on 02 Oct 2012, 10:53 PM
Was this ever solved I have the same issue.
0
Kate
Telerik team
answered on 05 Oct 2012, 07:52 AM
Hello Michael,

We were not able to replicate locally the issue that Shane encountered. However, to be able to help you out I would suggest that you provide a live url or open a support ticket and send us a very simplified runnable project so we can inspect it thoroughly.

Kind regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
AsyncUpload
Asked by
Shane
Top achievements
Rank 1
Answers by
Shane
Top achievements
Rank 1
Genady Sergeev
Telerik team
Michael
Top achievements
Rank 1
Kate
Telerik team
Share this question
or