-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE 8 Support Seems to cause Security Exceptions #101
Comments
So I had some luck today but still haven't nailed down a solution. This code:
Appears to cause an IE8 Security violation so I attempted to set the src attribute of the iframe to an empty html file and then perform my upload. Code looks like this
This seemed to work on one IE8 browser in a VM however after updating IE it broke. I am going to try with some of the IE browser vm's from moder.ie and report back. I plan to add a new options variable if this works to externalize the src variable in case someone else wants to override it. |
Hey Adam, Sounds Good, I will try to help out this weekend. Thanks Tom On Thu, Feb 20, 2014 at 3:25 PM, Adam Parrish [email protected]:
Tom Wilson This e-mail may contain information that is confidential, privileged or |
Thanks man - I am going to keep hacking on it a bit to see if I can recommend something that works reliably. |
any updates on this? does it work properly on IE8? |
Very interested in this issue.. we are experiencing the same issue with IE9 and it is a severe pain point. Enough that its tempting to use an entirely different module to handle file uploads. Looking forward to a fix! |
@jmwolfe any ideas on how to reproduce would be helpful, I have tested all the scenarios on examples/nodejs using SauceLabs w/ ie 8 and each Example works fine. Not sure how to reproduce :( |
I have a similar problem with the upload but related to Chrome. Some files seem to (above 10 Kb) timeout the script and hang the Chrome (v.35) tab. Chrome complains but succeds in the long run (worst almost 2 min. before answer). Its not the Back-End that returns regular JSON because I've tested that extensivly. I came to the same conclusion that it is: var bodyContent = (iframe[0].contentDocument ||
iframe[0].contentWindow.document).body; If anyone has an answer or another IE8 friendly Angular solution for uploading file/files, would be appriciated. |
Hi, The problem occurred only with IE9 and only when uploading an invalid file. Currently we use workaround to send response 200 also for the error messages. It seems to be linked to this issue: http://stackoverflow.com/questions/151362/access-is-denied-error-on-accessing-iframe-document-object "So it turns out, that if a response is sent with an error code, IE replaces the content of the iframe with an error message loaded from the disk (res://ieframe.dll/http_500.htm), and that causes the cross-domain access denied error." |
Experienced this in IE11 as well - forcing a 200 response code as sufficient to remedy the situation. |
Hi there, Try instructions from here : http://stackoverflow.com/questions/11544048/how-do-i-suppress-friendly-error-messages-in-internet-explorer That did the trick for me. Enjoy ! |
Hey there, I have had some great luck with this directive and want to try to work through an IE8 issue I am noticing. Maybe you already have dealt with this.
I am trying to use it in this form:
This appears to work in Chrome and Firefox. However the following code in ng-upload is having a bit of trouble getting the inner contents of the iframe:
Specifically the
Seems as though contentDocument and contentWindow.document are denying access for security reasons in IE8. I wish simply saying
IE8
can die would be valid, but in this case I need to make it work. If you guys know of any work around I appreciate it.I am happy to help dig in here too to fix it as this seems to be a great plugin for uploading.
The text was updated successfully, but these errors were encountered: