Home > Backend Development > PHP Tutorial > thinkphp3.1 文件上传?解决方法

thinkphp3.1 文件上传?解决方法

WBOY
Release: 2016-06-13 12:00:02
Original
948 people have browsed it

thinkphp3.1 文件上传?
有时候提交的时候不上传文件,但是他会提示未上传文件,怎么设置忽略。
------解决方案--------------------
判断上传的文件是否存在,存在才去执行上传文件,不存在,则反之。 
if(isset($_FILES['picname'])){
    $img = new img();
}

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