Skip to content
Snippets Groups Projects
Commit e8b803ac authored by Jared Hancock's avatar Jared Hancock
Browse files

Don't force download if files -- browser decides

parent b595c23b
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment