Update of /cvsroot/mantisbt/mantisbt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32239
Modified Files:
file_download.php
Log Message:
fix for 0004004: unable to download large size attachment
prevent browser caching for file downloads
Index: file_download.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/file_download.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- file_download.php 5 Oct 2004 14:59:08 -0000 1.29
+++ file_download.php 15 Oct 2004 18:49:31 -0000 1.30
@@ -75,6 +75,9 @@
# Added Quotes (") around file name.
header( 'Content-Disposition: filename="' . file_get_display_name(
$v_filename ) . '"' );
header( 'Content-Description: Download Data' );
+ # prevent file caching @@@ (thraxisp) we may want to suppress this for
small files
+ header( 'Pragma: no-cache' );
+ header( 'Expires: 0' );
# dump file content to the connection.
switch ( config_get( 'file_upload_method' ) ) {
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
|