Page 1 of 1

Viewing vs. saving attachments in 1.0.0a3

Posted: 13 Jul 2005, 21:08
by b0b
Hi all,

I just upgraded to Mantis 1.0.0a3 from 0.19.2. Previously when a user clicked on a jpg attachment the browser would automatically display it in a new window. The newest version pops open a open/save dialog instead.

I haven't changed any apache server or browser settings. So I am assuming the behavior change is due to the mantis upgrade?

1) Has anyone seen this?
2) How can I change the behavior back to the previous?

Thanks

Posted: 14 Jul 2005, 17:39
by thraxisp
Probably.

The Content-Disposition header was modified to be more correct to RFC2183. The line
header( 'Content-Disposition: filename="' . file_get_display_name( $v_filename ) . '"' );
was changed to:
header( 'Content-Disposition: attachment; filename="' . file_get_display_name( $v_filename ) . '"' );

That's it.

Posted: 15 Jul 2005, 05:02
by b0b
Thank you. Reverted the header back to original.