summaryrefslogtreecommitdiff
path: root/modules/upload/upload.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/upload/upload.module')
-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 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'
);
}