diff --git a/upload/source/function/function_attachment.php b/upload/source/function/function_attachment.php index 78990d3edc5437d611a1b56538af0782bc97cbd7..f316b06c3d96a2ea55da66bab27f376445646a65 100644 --- a/upload/source/function/function_attachment.php +++ b/upload/source/function/function_attachment.php @@ -48,7 +48,7 @@ function attachtype($type, $returnval = 'html') { $typeid = 7; } elseif(preg_match("/text|^(txt|rtf|wri|chm)\t/", $type)) { $typeid = 6; - } elseif(preg_match("/word|powerpoint|^(doc|ppt)\t/", $type)) { + } elseif(preg_match("/word|excel|powerpoint|^(doc|xls|ppt|docx|xlsx|pptx)\t/", $type)) { $typeid = 5; } elseif(preg_match("/^rar\t/", $type)) { $typeid = 4;