$file = M('upfilesys'); if(IS_POST){ $upload = new \Think\Upload();// $upload->allowExts = array('jpg', 'gif', 'png', 'jpeg','mp3'); $upload->savePath ='/syspic/'; $info = $upload->upload(); $data = array(); foreach($info as $value){ $data[] = array( 'filethumbsrc_varchar' => $value['savepath'].$value['savename'], 'filename_varchar' => $value['name'], 'ext_varchar' => $value['ext'], 'filetype_int' => I('get.filetype'), 'biztype_int' => I('POST.dtagid'), 'tagid_int' => I('POST.tagid'), 'filesrc_varchar' => $value['savepath'].$value['savename'], 'create_time' => date('Y-m-d H:i:s',time()), ); } if(I('get.filetype')==2){$data[0]['biztype_int']=1;} echo "<pre>"; print_r($data); echo "</pre>"; die();
- 2 回答
- 0 关注
- 3127 浏览
添加回答
举报
0/150
提交
取消