织梦不能上传jpg格式怎么办如何解决
时间:2021-01-09日 来源: 作者:
到根目录下找到Include文件夹,然后找到uploadsafe.inc.php文件,打开文件,找到第54行的代码
复制代码
代码如下:
if(in_array(strtolower(trim(${$_key.'_type'})), $imtypes))
{
$image_dd = @getimagesize($$_key);/* 把$image_dd 改为$imgage_dd */
if (!is_array($image_dd))
{
exit('Upload filetype not allow !');
}
}
if(in_array(strtolower(trim(${$_key.'_type'})), $imtypes))
{
$image_dd = @getimagesize($$_key);/* 把$image_dd 改为$imgage_dd */
if (!is_array($image_dd))
{
exit('Upload filetype not allow !');
}
}
相关文章
推荐文章
热门文章