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

Async Uploader and IE 9 not working

5 Answers 344 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 26 Jul 2012, 02:29 PM
It seems that the current uploader is not working in IE9 (kendo v2012.2.723.)  I'm using async and have a Java back end that sends back a simple success message to the browser in the form of a json object when and upload is successful.  It seems that after you click the upload button and the file succeeds IE wants to send the response back to the hidden iframe in the browser.   You get a prompt that asks you to save the json file and neither the handle success or handle complete events are triggered  even though the upload was successful.  The upload wait animation never goes away either so it looks like the app is stuck even though it all succeeded. 

5 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 30 Jul 2012, 11:40 AM
Hello Mike,

I don't seem to observe any issue on our demos? Am I missing something?

http://demos.kendoui.com/web/upload/events.html

All the best,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Mike
Top achievements
Rank 1
answered on 30 Jul 2012, 12:50 PM
Dimo,

The problem is when you actually try to save a file and send back a success response from the server.   I don't think your demos are doing any of that.  The iframe in ie9 does not receive the response from the server.  The browser thinks the response is a download even though it's just a plain text json response.   I debugged it down to the fact that the on load event on the iframe never gets fired so the onload handler that needs to handle this response is not doing anything.   In all other browsers this is working.   
0
Dimo
Telerik team
answered on 30 Jul 2012, 01:47 PM
Hello Mike,

Please see the attached video and let me know if you need more information.

With regard to the success response, it should be an empty string, as shown in the demo.

Regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Lukas
Top achievements
Rank 1
answered on 02 Aug 2012, 07:45 AM
You must set the content type of the server reply to text/plain. See http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/upload/metadata#receiving-metadata-from-the-save-handler 
This worked for me. 
0
Dmitry
Top achievements
Rank 1
answered on 17 Sep 2012, 01:37 PM
Cannot get it working either:
What I did is:

1) Checked that response type is "plain/text"
2) Disabled IIS7 gzip-ing, so "Content-Length" is set to "0" and not "119".
3) IE developer toolbar shows console error:
        
"LOG: Server response: Error trying to get server response: Error: Access is denied."

I moved JS to the same hostname as a website, added the hostname to "Trusted website" and still have this error.
The response headers seem to be ok:

Response    HTTP/1.1 200 OK
Cache-Control    no-cache
Pragma    no-cache
Expires    -1
Server    Microsoft-IIS/7.5
X-AspNet-Version    4.0.30319
X-Powered-By    ASP.NET
Date    Mon, 17 Sep 2012 13:30:45 GMT
Content-Length    0


UPDATE: found, the problem was in fact with some JS that was replacing "document.domain" property, in order to have shared cookies between the site
Tags
Upload
Asked by
Mike
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Mike
Top achievements
Rank 1
Lukas
Top achievements
Rank 1
Dmitry
Top achievements
Rank 1
Share this question
or