|
发表于 2013-3-17 18:26:29
|
显示全部楼层
jeongee 发表于 2013-3-16 12:59 ![](static/image/common/back.gif)
https://github.com/DiliCMS/DiliCMS-extensions/tree/master/extensions/fields
不带缩略图
我的意思是怎样加?- ...
- if ($CI->platform->file_upload($_FILES[$field['name']]['tmp_name'], $target_file))
- {
- $upload['image'] = (in_array($upload['type'], array('jpg', 'gif', 'png', 'jpeg', 'bmp')) ? 1 : 0);
- //可自行根据需要进行缩略图处理
- 在这里怎样写? 谢谢了!
- $CI->db->insert('dili_attachments', $upload);
- ..
复制代码 |
|