Viewing vs. saving attachments in 1.0.0a3

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
b0b
Posts: 2
Joined: 13 Jul 2005, 21:04

Viewing vs. saving attachments in 1.0.0a3

Post 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
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post 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 ) . '"' );
b0b
Posts: 2
Joined: 13 Jul 2005, 21:04

That's it.

Post by b0b »

Thank you. Reverted the header back to original.
Post Reply