用thinkphp 3.2自带的上传gif图片为什么不会动了官方的竟然可以动,我测试了一下,
public function upload(){
$up=new \Think\Upload();
$up->maxSize=2248576;
$up->rootPath='./Uploads/';
$up->savePath='';
$up->exts=array('jpg','gif','png','jpeg');
$up->autoSub=true;
$up->subName=array('date','Y-m-d');
$in=$up->upload();
if(!$in){
$this->error($up->getError());
}{// 上传成功
$this->success('上传成功!');
}
}可是传上去之后就变成这样了
最佳答案