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

IE9

Open wutgit opened this issue 10 years ago • 5 comments

Hello!

Maybe anyone has any pointers of where to look.

Basically, when doing IE9 upload, it uses IFRAME method and upload does not work. I tracked that it calls form[0].submit, but nothing actually goes to server (using IE9 compatiblity mode, will try normal IE9 when i have chance).

UPDATE: Hmm, seems that i was blind, it is actually sending with no problems, and this is CSRF token issue, seems that i have find a way to append CSRF header to IFRAME method.

wutgit avatar Sep 07 '15 14:09 wutgit

Hi wutgit,

How to append token header to IFRAME method?

luckerxia avatar Jan 03 '16 10:01 luckerxia

A form field?

luckerxia avatar Jan 03 '16 11:01 luckerxia

Any update on how to append CSRF token??

mittalbhanderi avatar Feb 03 '17 16:02 mittalbhanderi

Same problem to me, any update there?

zsj621 avatar Feb 15 '17 06:02 zsj621

I managed to get around the issue by appending the authorisation token to the url and read it in on my api server.

Look at the following article for a different approach: https://leastprivilege.com/2013/10/31/retrieving-bearer-tokens-from-alternative-locations-in-katanaowin/

mittalbhanderi avatar Feb 15 '17 08:02 mittalbhanderi