summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Drumm2006-11-28 02:38:28 (GMT)
committerNeil Drumm2006-11-28 02:38:28 (GMT)
commit222fa77f84ec216505b0971a186002ba52f289c3 (patch)
treec01ddba2fca52850ff931a2a83d4769a267f7fa7
parent85a1cea720b80547d430430bd27b437ba6b27d25 (diff)
#61528 by Darren Oh. Let the browser fully handle downloading attachments.
-rw-r--r--modules/upload/upload.module3
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 3bf59f1..11358ae 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'
);
}