Home >CMS Tutorial >DEDECMS >What should I do if I can't upload images in jpg format to DreamWeaver?
What should I do if DreamWeaver cannot upload images in jpg format?
Go to the root directory and find the Include folder, then find the uploadsafe.inc.php file, open the file, and find the code on line 54
Recommended learning: Dreamweaver cms
The code is as follows:
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 !'); } }
The above is the detailed content of What should I do if I can't upload images in jpg format to DreamWeaver?. For more information, please follow other related articles on the PHP Chinese website!