From e8b803acbe643429737cb1342c929a31a4d6d503 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Tue, 4 Feb 2014 18:00:35 -0600 Subject: [PATCH] Don't force download if files -- browser decides --- include/class.file.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/class.file.php b/include/class.file.php index d68a3b11b..a2944c9db 100644 --- a/include/class.file.php +++ b/include/class.file.php @@ -200,7 +200,8 @@ class AttachmentFile { if ($bk->sendRedirectUrl('inline')) return; $this->makeCacheable(); - Http::download($this->getName(), $this->getType() ?: 'application/octet-stream'); + Http::download($this->getName(), $this->getType() ?: 'application/octet-stream', + null, 'inline'); header('Content-Length: '.$this->getSize()); $this->sendData(false); exit(); -- GitLab