2

I've seen a few questions asked on this subject, such as:

How to download multiple files in one shot in IE

Download Multiple Files Without Using Zip File

but they don't seem to work for me.

I'm using a very simple solution and it looks similar to answers to other answers I've seen. The problem is that IE will only download the first report. I have verified that it is making the call to the server multiple time and the server seems to be sending the response, but it seems like IE stops after the first file it receives.

When downloading from multiple iFrames, why is IE ignoring subsequent files?

function downloadReports(reportIds) {
    for (var i = 0; i < reportIds.length; i++) {
        var url = "http://page.aspx?id=" + configId + "&reportId=" + reportIds[i];

        setTimeout(function () { $("<iframe src='" + url + "' />").appendTo('body'); }, 500 * i);
    }
}
Community
  • 1
  • 1
Homer
  • 7,594
  • 14
  • 69
  • 109
  • 1
    Did you got any solution for this issue. Actually, I'm facing the same issue in IE. –  Sep 21 '15 at 05:47
  • In our situation, we're seeing this only when downloading non-text files. Trying this out with a .js, .txt or a .json file that returns textual content works just fine. However, downloading anything in a binary format like .doc ends up aborted after the first successful download. – Artif3x Jul 15 '16 at 14:00
  • @Homer, were you able to get this issue fixed? – Ipsit Gaur Dec 05 '18 at 10:03

0 Answers0