This commit is contained in:
Andreas Österreicher
2011-08-29 12:47:47 +00:00
parent 8f9f5621a2
commit cd15d0e121
6 changed files with 116 additions and 47 deletions
+3
View File
@@ -49,6 +49,9 @@ if(file_exists($filename))
{
if($handle = fopen($filename,"r"))
{
if($doc->mimetype=='')
$doc->mimetype='application/octetstream';
header('Content-type: '.$doc->mimetype);
header('Content-Disposition: inline; filename="'.$doc->name.'"');
header('Content-Length: ' .filesize($filename));