Image Downloads in IE

Hi,

This may not be a rails issue, if not apologies.

I have an application which allows image downloads.

The image is downloaded with the code:
send_data(@wallpaper.image,
:filename => @wallpaper.path,
:type => @wallpaper.image_content_type,
:disposition => “downloaded”)

However, Internet Explorer doesn’t download the image, it just displays
it.
I know can do the
whole ‘Right click and choose save as’ thing but I was wondering is
there a
method of
avoiding this with rails.

Thanks in advance,

Keith

On 2/7/07, Keith D. [email protected] wrote:

        :disposition => "downloaded")

However, Internet Explorer doesn’t download the image, it just displays it.
I know can do the
whole ‘Right click and choose save as’ thing but I was wondering is there a
method of
avoiding this with rails.

Thanks in advance,

Keith

Keith,

Try it without setting the :disposition (which doesn’t appear to be a
valid value).

send_data(@wallpaper.image,
:filename => @ wallpaper.path,
:type => @wallpaper.image_content_type)


Zack C.
http://depixelate.com

Thanks Zack,

Its working perfectly now.

Not sure I picked up that :disposition value but it must have been in an
example
somewhere.

Keith