Home > CMS Tutorial > DEDECMS > body text

What should I do if DreamWeaver cannot upload jpg format?

藏色散人
Release: 2019-12-09 10:38:51
Original
2456 people have browsed it

What should I do if DreamWeaver cannot upload jpg format?

What should I do if Dream Weaver cannot upload jpg format?

What should I do if Dreamweaver cannot upload jpg format? Go to the root directory to find the Include folder, then find the uploadsafe.inc.php file, and follow the steps below to modify it

Recommended study: Dream Weaver cms

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

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 !'); 
} 
}
Copy after login

The above is the detailed content of What should I do if DreamWeaver cannot upload jpg format?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template