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

Upload doesn't work with IE across different domains

1 Answer 95 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Piotr
Top achievements
Rank 1
Piotr asked on 06 Dec 2011, 04:13 PM
Hi,

Async upload fails from IE (version 9 and lower) when used across different domains. Though, the file actually gets uploaded, but somehow onError event handler is called and an error message is showed in a popup.

It works fine for other browsers like FF and chrome, but HTTP OPTIONS method for the upload URL must be implemented by server side scripts, and the method must provide necessary response header like ("Access-Control-Allow-Origin", "some_allowed_domain") in it.

Any suggestions what specifically must be done to get upload work correctly with IE when used across different domains? 

thanks in advance,

Piotr

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 07 Dec 2011, 11:43 AM
Hello Piotr,

The upload uses a hidden IFRAME to perform the upload in IE. You get an error when it tries to access the response that originates from another domain.

We don't have a lot of options here. You can suppress the onError event, but you'll need other means to verify that the file is uploaded.

Best wishes,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Upload
Asked by
Piotr
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or