Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

#7423 Open uploaded files in IE11 and Edge #66

Merged

Conversation

ja1979
Copy link

@ja1979 ja1979 commented Apr 6, 2018

This allows to open files uploaded in MS Internet Explored 11and MS Edge.

Reported at jhipster/generator-jhipster#7423

win.document.write(
'<iframe src="' + fileURL + '" frameborder="0" style="border:0; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%;" allowfullscreen></iframe>');
if (window.navigator && window.navigator.msSaveOrOpenBlob) {
const byteCharacters = atob(data);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add one line comment to say it's for IE and Edge

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@gmarziou
Copy link
Contributor

gmarziou commented Apr 7, 2018

@gmarziou
Copy link
Contributor

gmarziou commented Apr 7, 2018

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants