IE8 and IE9 freezes when uploading file using kendo upload.

6 posts, 0 answers
  1. Paulo
    Paulo avatar
    4 posts
    Member since:
    Sep 2014

    Posted 01 Oct 2014 Link to this post

    I'm using kendoUpload control to upload the file. Everything works fine and fires success callback in IE10, Chrome and FF but as soon as I switch to IE8 and IE9 the browser freezes but the file is uploaded successfully and the success callback doesnt fire. 

    Please help. Thanks in advance.

    Code:  
    ================
    HTML

     <div class="box-col" style="width: auto;">
                            <input id="files"
                                   name="files"
                                   type="file"
                                   data-role="upload"
                                   data-async="{ saveUrl: 'url/api/MyClass/UploadFiles', removeUrl: 'remove', autoUpload: true }"
                                   data-localization="{select: 'Browse...'}"
                                   data-bind="visible: isVisible,
                                  enabled: enableFileUpload,
                                  events: {
                                            select: documentFilename_OnSelected,
                                            success: upload_onSuccess,
                                            error: upload_onError
                                          }"
                                   style="width:inherit;">

                        </div>

    ===========================================
    JS:
    var docLibItemKendoVM = kendo.observable({
                upload_onSuccess: function (e) {               
                   console.log('success');
                },

                upload_onError: function (e) {
                    console.log('error')
                },

                documentFilename_OnSelected: function (e) {
                    console.log('selected');
                }
    });





    ===================================================*/
    WebAPI 

    [Route("UploadFiles/{folderId}/{childId}")]
    public async Task<JObject> PostUploadFiles(string folderId, int childId)
            {
                 if (Request.Content.IsMimeMultipartContent())
                {
                    JObject retVal;
                    try
                    {
                        retVal = JObject.FromObject(new
                        {
                            fileName = "Sample Name",
                            fullFileName = "Sample Path"
                        });
                        return await Task.FromResult<JObject>(retVal);
                    }
                    catch (Exception ex)
                    {
                        retVal = JObject.FromObject(new
                        {
                            errorDetail = ex.Message
                        });
                        throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.InternalServerError, retVal));
                    }
                }
                else
                {
                    throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.NotAcceptable, "Invalid Request!"));
                }
            }






























  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 01 Oct 2014 Link to this post

    Hello Paulo,


    Could you please send us small isolated example, which demonstrates the behavior, so we could inspect it locally and provide more relevant assistance?

    I am looking forward to hearing from you.

    Regards,
    Dimiter Madjarov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Paulo
    Paulo avatar
    4 posts
    Member since:
    Sep 2014

    Posted 02 Oct 2014 in reply to Dimiter Madjarov Link to this post

    Hi Dimiter, 

    Here's my snippet. Appreciate your quick response. 

    regards, 
    Paulo 
  5. Paulo
    Paulo avatar
    4 posts
    Member since:
    Sep 2014

    Posted 02 Oct 2014 in reply to Dimiter Madjarov Link to this post

    Hi Dimiter, 

    Here's my snippet. Appreciate your quick response. 

    regards, 
    Paulo 
  6. Paulo
    Paulo avatar
    4 posts
    Member since:
    Sep 2014

    Posted 02 Oct 2014 in reply to Dimiter Madjarov Link to this post

    Hi Dimiter, 

    Appreciate your quick response. You can access my codes here. Thank you. 

    http://www.mediafire.com/download/bt9j9h8q5x6e4e4/KendoUploadProject.rar

    regards, 
    Paulo 
  7. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 03 Oct 2014 Link to this post

    Hello Paulo,


    I did not notice browser freezing behavior. The only difference is that in IE8 and IE9 the progress bar  is not reporting the file upload progress, but jumps directly to 100%. This is a browser limitation and is listed in the Upload widget supported browsers section.

    Regards,
    Dimiter Madjarov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready