First step: We find the include/uploadsafe.inc.php file according to the path of the following directory
Step Two: Open the uploadsafe.inc.php file with an editing software find the following code 45 lines-59 lines:
$imtypes = array
(
"Image/pjpeg", "Image/jpeg", "Image/gif", "Image/png",
"Image/xpng", "Image/wbmp", "Image/bmp"
);
if (In_array (Strtolower (Trim (${$_key) _type '})), $imtypes))
{
$image _dd = @getimagesize ($$_key);
if (!is_array ($image _dd))
{
Exit (' Upload filetype not allow! ');
}
}
}
In the above small label two places can clearly see this picture type of code is wrong. Imgtypes refers to the picture type in the encapsulated function, what does imtypes mean? This is important causes the website backstage cannot upload the picture the question, then how should we revise? The little part has been tested. It is no doubt that 45 lines and 51 lines of $imtypes are modified to $imgtypes, and then saved to the corresponding file directory, to the site background update cache. Then you can upload the images you need to pass in the background.
Weaving Dream dedecms site background can not upload pictures of the steps in detail