# Zip file not downloading properly in IE

**URL:** <https://www.ruby-forum.com/t/zip-file-not-downloading-properly-in-ie/154517>\
**Category:** Rails\
**Created:** [December 1, 2008, 5:42am UTC](https://www.ruby-forum.com/t/zip-file-not-downloading-properly-in-ie/154517 "2008-12-01T05:42:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raju\_k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a9adbd/32.png) [@raju\_k](https://www.ruby-forum.com/u/raju_k)\
**Post date:** [December 1, 2008, 5:42am UTC](https://www.ruby-forum.com/t/zip-file-not-downloading-properly-in-ie/154517/1 "2008-12-01T05:42:05Z")

</div>

hi,  
Here is my code.

\<% require ‘rubygems’  
require ‘zip/zipfilesystem’  
content = “”  
content += “[InternetShortcut]\n”  
content += “URL=http://www.mysite.com/”  
content += “\nIconFile=http://www.mysite.com/favicon.ico\n”  
File.delete("#{RAILS\_ROOT}/public/ins\_test/InsShortcut.zip") if  
File.exist?("#{RAILS\_ROOT}/public/ins\_test/InsShortcut.zip")  
Zip::ZipFile.open("#{RAILS\_ROOT}/public/ins\_test/InsShortcut.zip",  
Zip::ZipFile::CREATE){  
|zipfile|  
zipfile.file.open(“MySite.url”, ‘w’) { |f| f.puts “#{content}” }  
}  
File.chmod(0777, “#{RAILS\_ROOT}/public/ins\_test/InsShortcut.zip”)

```
  %>
  <a href="/ins_test/InsShortcut.zip">download the shortcut icon

```

(zipped)

local - OS(ubuntu 8.04) When I download the zipped file in both IE &  
firefox it is working properly.

Server - OS(red hat 5.2) In firefox zipped file is downloading properly  
but not in IE.

I am not able to understand the situation, is it because of OS or my  
code.

Advance Thanks.  
Raju
