Be sure to check this with Internet Explorer!  I had used the PHP
header rewrite to force downloading a pdf, but it stopped working on
Internet explorer (works on every other browser that I could check).

Had to provide a link to click to download.

Ron
FTA


On Mar 29, 2011, at 12:44 PM, WebDude wrote:

> PHP has a handy header rewrite for forcing a jpg download. I was
> wondering
> if anyone has ever done this in Witango. I've been able to get this
> to work
> on IIS by changing the directory header, the problem being is that I
> have 2
> sites that reference the same images and one needs to force a
> download and
> the other to view the image in a browser (same images in the same
> directories).
>
> I've been dabbling but can't seem to get it to work right. Of course
> when I
> add header change to the top of the taf file, it tries to download
> the taf
> file itself rather then the jpg file. This is stupid I know, but
> what is the
> best way to force a download of a jpg and get it to work? This is
> what I
> have so far. Am I missing something fundamental in trying to do this?
>
> <@purgeresults><@ASSIGN local$httpHeader
> VALUE="Content-Type:application/jpg<@CRLF>Content-Disposition:
> attachment,
> filename='<@COLUMN "images.LargerImage">'<@CRLF>readfile('<@COLUMN
> "images.LargerImage">')<@CRLF><@USERREFERENCECOOKIE><@CRLF>">
>
> Thanks for your thoughts...
>
>
>
> WebDude
>
>
>
>
> ----------------------------------------
>
> To unsubscribe from this list, please send an email to [email protected]
>  with "unsubscribe witango-talk" in the body.
>




----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.

Reply via email to