Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0006679mantisbtotherpublic2006-09-12 00:52
Reporterrkorte Assigned Tothraxisp  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.0 
Fixed in Version1.1.0a1 
Summary0006679: Attachment download always opens "Save As" dialog even when a .png
Description

Clicking on any attachment always forces the browser to open a "Save As" or "Open With" dialog even if the attachment is an image which can be displayed in the browser. This behavior changed from 0.19.2 to 1.0.0. Tested with FireFox 1.0.6 and latest Internet Explorer.

It'd be better to let the browser decide how to handle it. I fixed this in the 1.0.0 code by removing the "attachment;" keyword from the http header "Content-Disposition" at line 79 of file_download.php. (This keyword was added for some reason between 0.19.2 and 1.0.0.)

This bug may be related to 0006511.

TagsNo tags attached.

Relationships

related to 0005343 closedthraxisp File download does not use filename in Konqueror / download script should set disposition type 

Activities

mlovell

mlovell

2006-02-07 12:39

reporter   ~0012108

On 1.0.0rc5, I modified our local file_download.php to change the disposition of file attachments:

79c79
< header( 'Content-Disposition: inline; filename="' . file_get_display_name( $v_filename ) . '"' );

  header( 'Content-Disposition: attachment; filename="' . file_get_display_name( $v_filename ) . '"' );

Is there any reason such a change is not safe?

ericb

ericb

2006-03-25 20:28

reporter   ~0012412

mlovell, I'm also wondering if this modification is not safe. I made the same change on the chance that is it safe.

thraxisp

thraxisp

2006-03-27 21:06

reporter   ~0012423

Fixed in CVS.

config_defaults_inc.php -> 1.291
file_download.php -> 1.38