-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not download zip file in IE #96
Comments
|
Is this the sample that you tried that didn't work? |
You can use msSaveBlob in IE10+
|
@alamont I get error on the line
as
in jszip.min.js I am using IE11. |
That's strange. Blobs should be supported by IE10+.
|
We could add FileSaver.js to the list of polyfill (and update the example) : saveAs(zip.generate({type:"blob"}), "hello world.zip"); |
See Stuk#96 : we still don't have a solid, cross brower way to download the zip file...
I've updated the example on a branch and tested it successfully on IE 10 and 11. |
I need to look at it from a different angle. The page is running on Compatibility View. I get
And if I remove the Compatibility View, the functionality does not work as I use Ajax to get the content of the files and the Ajax calls fails when the Compatibility View as the sites are SharePoint sites with NTLM authentication. Let me give the scenario: Here is the code:
|
Ok, I think I see what you're trying to do. I'm not an expert of the Compatibility View of IE10 so I will assume that it behaves as IE8/9. To download the filesIE <= 9 is not a nice place when it comes to ajax calls and binary content. The default behavior is to treat everything as text and this breaks any binary content. To give the zip file to the userOn IE <= 9, I don't know any pure js method to do that without any server call (if you ever find one I'll be greatly interested !). You can do that with a flash component like Downloadify... or any other similiar tool (Downloady hasn't been updated in the last 4 years). I don't know your development constraints but doing that server side may be easier ! |
The documentation has been updated and now contains guides for these issues. |
Using this code we are able to download a zip file in IE . |
I followed the sample on your site and wrote code for zipping and downloading selected files from a site. The zip is created, but not downloaded on IE.
I tried to use the sample in your site and it does not work in IE. I tried using blob_url as well, but failed.
Is there some working example?
The text was updated successfully, but these errors were encountered: