I have a parent window where a popup window opens with using window.open() . The following is a snippet of code:
window.helper = (data, filesArr) => { this.onReceiveMessage({ data }, filesArr); } this.postEditorWindow = window.open('some url here', "_blank", "height=100"); // postEditorWindow, I am using it later to close popup window.
I want to send an array of files selected from a popup to the parent window, so I call:
window.opener.helper(someData, e.target.files)
... from a child / popup window that sends data correctly, but in IE Edge and IE 10/11 its behavior is strange. File information is lost. Although it works fine in Chrome and Firefox.
i.e. Inside IE, the type of the filesArr elements is [object File] when a file is selected, but when I send it through a helper function to the parent window, it becomes simple [object] , inside the parent window, so the file is not saved. 
Questions:
Is it possible to transfer the file data (BLOB) selected on the local computer between two or more windows?
If there is no data that we can transfer between two windows? Why data like [object File] cannot be transferred to IE and why does it work with Chrome / Firefox / Safari?
Does anyone have any ideas / hints? Please help.
javascript internet-explorer microsoft-edge file-upload
agpt Apr 28 '17 at 13:19 2017-04-28 13:19
source share