Added payment terms categories
[fa-stable.git] / admin / attachments.php
index 92008742e9bfc3480b1b431b116aeb4a1e91ec10..30090517cdaad37bf38926089c87d3674c338cd1 100644 (file)
@@ -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();