# IE6 problem with link\_to -\> send\_file

**URL:** <https://www.ruby-forum.com/t/ie6-problem-with-link-to-send-file/90297>\
**Category:** Rails\
**Created:** [March 27, 2007, 3:44pm UTC](https://www.ruby-forum.com/t/ie6-problem-with-link-to-send-file/90297 "2007-03-27T15:44:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [March 27, 2007, 3:44pm UTC](https://www.ruby-forum.com/t/ie6-problem-with-link-to-send-file/90297/1 "2007-03-27T15:44:29Z")

</div>

I’m having a problem with send\_file on IE6.

I’ve got a page that has a set of 3 links (link\_to(image\_tag(…)), each  
of which invokes the same method, but with different params. On that  
same page is a form with 3 radio buttons. The form invokes the same  
method as the links, passing the same params. The difference in  
server-side processing between the links and the form is that both  
render a file, but when invoked from the form the method adds some  
additional content to the file. In all cases, I use send\_file to return  
the file to the visitor.

IE6 handles the response when the method’s invoked from the form just  
fine. Thows up a ‘view or save’ dialog with the file name I sent and  
everything is handled correctly. When the method is invoked from the  
links, however, the send\_file response to the browser is not being  
handled correctly. IE6 throws up an error dialog saying it’s unable to  
download the _action name_ that I used in the link, not the file name I  
sent back in the send\_file response.

I haven’t been able to find anything on Google. Probably just haven’t  
figured out the right terms yet. Has anybody got any ideas about what’s  
going on here or how I might fix it, still using link\_to?

Thanks,  
Bill
