diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-28 02:38:28 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-28 02:38:28 +0000 |
commit | 222fa77f84ec216505b0971a186002ba52f289c3 (patch) | |
tree | c01ddba2fca52850ff931a2a83d4769a267f7fa7 /modules/upload/upload.module | |
parent | 85a1cea720b80547d430430bd27b437ba6b27d25 (diff) | |
download | brdo-222fa77f84ec216505b0971a186002ba52f289c3.tar.gz brdo-222fa77f84ec216505b0971a186002ba52f289c3.tar.bz2 |
#61528 by Darren Oh. Let the browser fully handle downloading attachments.
Diffstat (limited to 'modules/upload/upload.module')
-rw-r--r-- | modules/upload/upload.module | 3 |
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' ); } |