优化文件类,添加heihe附件类型
This commit is contained in:
parent
d93828c079
commit
ebb2421761
|
@ -16,6 +16,8 @@ class files{
|
|||
{
|
||||
$msg=array();
|
||||
|
||||
$general = array('doc', 'docx', 'xls', 'xlsx', 'ppt', 'htm', 'html', 'txt', 'zip', 'rar', 'gz', 'bz2','gif', 'jpg', 'jpeg', 'png', 'bmp','pdf','odt');
|
||||
|
||||
//文件保存目录路径
|
||||
$save_path = $path;
|
||||
//文件保存目录URL
|
||||
|
@ -26,10 +28,11 @@ class files{
|
|||
'flash' => array('swf', 'flv'),
|
||||
'media' => array('swf', 'flv', 'mp3', 'wav', 'wma', 'wmv', 'mid', 'avi', 'mpg', 'asf', 'rm', 'rmvb'),
|
||||
'file' => array('pdf','doc', 'docx', 'xls', 'xlsx', 'ppt', 'htm', 'html', 'txt', 'zip', 'rar', 'gz', 'bz2'),
|
||||
'reviewatt'=>array('doc', 'docx', 'xls', 'xlsx', 'ppt', 'htm', 'html', 'txt', 'zip', 'rar', 'gz', 'bz2','gif', 'jpg', 'jpeg', 'png', 'bmp','pdf','odt'),
|
||||
'md'=>array('doc', 'docx', 'xls', 'xlsx', 'ppt', 'htm', 'html', 'txt', 'zip', 'rar', 'gz', 'bz2','gif', 'jpg', 'jpeg', 'png', 'bmp','pdf','odt'),
|
||||
'literature'=>array('doc', 'docx', 'xls', 'xlsx', 'ppt', 'htm', 'html', 'txt', 'zip', 'rar', 'gz', 'bz2','gif', 'jpg', 'jpeg', 'png', 'bmp','pdf','odt'),
|
||||
'document'=>array('doc', 'docx', 'xls', 'xlsx', 'ppt', 'htm', 'html', 'txt', 'zip', 'rar', 'gz', 'bz2','gif', 'jpg', 'jpeg', 'png', 'bmp','pdf','odt'),
|
||||
'reviewatt'=>$general,
|
||||
'md'=>$general,
|
||||
'literature'=>$general,
|
||||
'document'=>$general,
|
||||
'heihe'=>$general
|
||||
);
|
||||
//最大文件大小
|
||||
$max_size = 10485760;
|
||||
|
|
Loading…
Reference in New Issue