-
CI框架上传类改写,支持多附件上传
CI框架上传类改写,
原来的程序只支持一个附件上传,并不支持控件数组上传。
现已修改支持多附件上传。将该文件放到自己程序目录中的libraries文件夹下。
调用如下:
// 附件上传处理
$folder = date("Ym");
$upload_dir = APPPATH . "/app/upload/".$folder;
$config["upload_path"] = $upload_dir;
$config["allowed_types"] = "gif|jpg|png|txt|doc|docx|xls|xlsx|ppt|pptx|pdf";
$config["max_size"] = "5120";
$config["max_width"] = "0";
$config["max_height"] = "0";
$config["max_filename"] = "0";
$config["overwrite"] = false;
$config["encrypt_name"] = true;
$config["remove_spaces"] = true;
$this->load->library("upload", $config);
$field_name = "att";
if (!$this->upload->do_upload($field_name, true))
{
// 出错
$error = array("error" => $this->upload->display_errors());
} else {
// 正
- 2022-05-05 09:14:31下载
- 积分:1
-
动网格程序编辑
在应用fluent6.3进行模拟时,可以参考本教程,学习相关模型的特殊设置方法,从而顺利进行自己模型的求解。
- 2022-03-06 23:29:26下载
- 积分:1
-
用正则表达式提取文本内容
VB代码实现用正则表达式对一段文字或对一个文本文件的内容进行匹配提取,提取到多段符合表达式的内容后可以自已指定用什么符号隔开显示。注意,建立VB工程后,要引用regexp.tlb文件,才支持正则表达式。
- 2022-03-15 07:46:51下载
- 积分:1
-
TXT files to split into files of any size, easy to portable devices such as mobi...
对TXT文件进行分割成任意大小的文件,便于手机等便携设备出里-TXT files to split into files of any size, easy to portable devices such as mobile phones out in
- 2022-08-11 22:30:49下载
- 积分:1
-
以文件方式保存和恢复treeview 是一款比较新的字做小工具
以文件方式保存和恢复treeview 是一款比较新的字做小工具-on paper preservation and restoration treeview is a relatively new character of small tools
- 2022-01-31 22:44:58下载
- 积分:1
-
this document file contain articles about machine diagnostics
this document file contain articles about machine diagnostics
- 2022-07-21 19:39:24下载
- 积分:1
-
vb 宾馆信息管理系统 整个系统 免费下载
vb 宾馆信息管理系统 整个系统 免费下载-vb Hotels information management system throughout the system for free download
- 2022-05-22 22:15:33下载
- 积分:1
-
The realization of the use of ShellExt
利用ShellExt实现 -The realization of the use of ShellExt
- 2023-01-25 20:00:04下载
- 积分:1
-
conversion of paper dat small examples.
转换dxf到dat文件的小例子-conversion of paper dat small examples.
- 2022-04-19 15:31:31下载
- 积分:1
-
C_C++源程序的格式化软件,控制台界面
C_C++源程序的格式化软件,控制台界面-C_C++ Source formatting software, console interface
- 2022-11-16 02:25:02下载
- 积分:1