angular-file-upload icon indicating copy to clipboard operation
angular-file-upload copied to clipboard

IE8 support?

Open emilssonn opened this issue 12 years ago • 3 comments

Hello!

I have been trying for a while to get the file uploading working in IE8 (IE8 document mode). The problem is when angular-file-uploader tries to access the iframe content IE reports "access denied". The file upload is being made within the same domain. Is IE8 supported by angular-file-upload?

Im using:

  • jquery 1.11.0
  • angular 1.2.10
  • angular-file-upload 0.3
  • es5-shim

emilssonn avatar Feb 05 '14 22:02 emilssonn

Is IE8 supported by angular-file-upload?

Yes, it is. Try replacing JQuery 1.11.0 to 1.8.3.

nervgh avatar Feb 05 '14 22:02 nervgh

Edit:

I was able to get it working by changing the "iframe.contents()[ 0 ].body.innerHTML" to "iframe[0].innerHTML" in the "_iframeTransport" function.

Im now having the problem that the filename is being set as the complete file path and not only the filename. Ex: "C:\image.png" should be "image.png".

Original:

Im getting the same "access denied" error from JQuery when using 1.8.3. As a side note, the 3 demos linked in the readme do not run in IE document mode 8 for me, but the error is coming from angularJS core, "The property or method hasOwnProperty is not supported by the object".

emilssonn avatar Feb 06 '14 07:02 emilssonn

First and second examples do not work in IE8, because es5shim.js is not found (404). Third example should work.

nervgh avatar Feb 07 '14 06:02 nervgh