Commit 2843ea73 authored by zhangkuanguang's avatar zhangkuanguang

图片

parent dc33cf06
......@@ -521,7 +521,7 @@ class Pic_model extends MY_Model {
//设置上传图片的属性并且上传
$this->load->library('UploadFile', array('filename' => $filename),'uf');
$this->uf->setInputName($filename);
$this->uf->setFileType("jpg|gif|png");
$this->uf->setFileType("jpg|gif|png|jpeg");
$this->uf->setMaxSize($this->_max_size);
$this->uf->setUploadType("fastdfs");
$this->uf->setSaveDir($this->_save_dir);
......@@ -583,7 +583,7 @@ class Pic_model extends MY_Model {
//$this->load->library('UploadFileZhou', array('filename' => $filename),'uf');
$this->load->library('UploadFileZhou', array(),'uf');
$this->uf->setInputName($filename);
$this->uf->setFileType("jpg|gif|png");
$this->uf->setFileType("jpg|gif|png|jpeg");
$this->uf->setMaxSize($this->_max_size);
$this->uf->setUploadType("fastdfs");
......@@ -666,7 +666,7 @@ class Pic_model extends MY_Model {
$this->uf->setInputName($filename);
$this->uf->setFileType("jpg|gif|png");
$this->uf->setFileType("jpg|gif|png|jpeg");
$this->uf->setImageCategory($this->_imageCategory);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment