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

IE8 and IE9 freezes when uploading file using kendo upload.

5 Answers 164 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Paulo
Top achievements
Rank 1
Paulo asked on 01 Oct 2014, 09:22 AM
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!"));
            }
        }






























5 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 01 Oct 2014, 10:10 AM
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!
 
0
Paulo
Top achievements
Rank 1
answered on 02 Oct 2014, 07:57 AM
Hi Dimiter, 

Here's my snippet. Appreciate your quick response. 

regards, 
Paulo 
0
Paulo
Top achievements
Rank 1
answered on 02 Oct 2014, 08:00 AM
Hi Dimiter, 

Here's my snippet. Appreciate your quick response. 

regards, 
Paulo 
0
Paulo
Top achievements
Rank 1
answered on 02 Oct 2014, 08:39 AM
Hi Dimiter, 

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

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

regards, 
Paulo 
0
Dimiter Madjarov
Telerik team
answered on 03 Oct 2014, 08:52 AM
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!
 
Tags
Upload
Asked by
Paulo
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Paulo
Top achievements
Rank 1
Share this question
or