X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fattachments.php;h=30090517cdaad37bf38926089c87d3674c338cd1;hb=467fca01c62dd47bcd97ec957a49b0209732c9d0;hp=92008742e9bfc3480b1b431b116aeb4a1e91ec10;hpb=44cee932862eaa4213f80e9a0a09b2abc18849e4;p=fa-stable.git diff --git a/admin/attachments.php b/admin/attachments.php index 92008742..30090517 100644 --- a/admin/attachments.php +++ b/admin/attachments.php @@ -34,9 +34,9 @@ if ($view_id != -1) $type = ($row['filetype']) ? $row['filetype'] : 'application/octet-stream'; header("Content-type: ".$type); header('Content-Length: '.$row['filesize']); - if ($type == 'application/octet-stream') - header('Content-Disposition: attachment; filename='.$row['filename']); - else + //if ($type == 'application/octet-stream') + // header('Content-Disposition: attachment; filename='.$row['filename']); + //else header("Content-Disposition: inline"); echo file_get_contents(company_path(). "/attachments/".$row['unique_name']); exit();