From 222fa77f84ec216505b0971a186002ba52f289c3 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Tue, 28 Nov 2006 02:38:28 +0000 Subject: #61528 by Darren Oh. Let the browser fully handle downloading attachments. --- modules/upload/upload.module | 3 --- 1 file changed, 3 deletions(-) (limited to 'modules/upload/upload.module') diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 3bf59f139..11358ae94 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -267,12 +267,9 @@ function upload_file_download($file) { if (node_access('view', $node)) { $name = mime_header_encode($file->filename); $type = mime_header_encode($file->filemime); - // Serve images and text inline for the browser to display rather than download. - $disposition = ereg('^(text/|image/)', $file->filemime) ? 'inline' : 'attachment'; return array( 'Content-Type: '. $type .'; name='. $name, 'Content-Length: '. $file->filesize, - 'Content-Disposition: '. $disposition .'; filename='. $name, 'Cache-Control: private' ); } -- cgit v1.2.3