Problem with send_file and Exlporer 7

Hi all,

I am new to RoR and ruby.
In one of my controller I have:

def attachment
:filename => ‘polop.txt’,
:disposition => ‘attachment’,
:streaming => ‘true’)

With Firefox, when the fonction is called the file can be downloaded and
the dialog box contains the right information… but with Internet
Explorer 7 the dialog box doesn’t have the right file name (it has the
name of the fuction that calls ‘attachment’) and doesn’t recognize the
format of the file.

I can’t find why I got this difference of behaviors. I hope you can



I found that by removing ‘redirect_to’ from the function that was
calling ‘attachment’ I was able to download my file with IE 7…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs