-
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
-
将RGB565格式的位图转换为C语言的代码
将RGB565格式的位图转换为C语言的代码-to RGB565 format bitmap conversion to the C language code
- 2023-06-06 02:00:04下载
- 积分:1
-
优素福Ozturk去# 305 ng的高技术工程departman electronik盖布泽…
yusuf ozturk goı ng a electronik engineering departman of gebze high technology of enstitue. end this fileis c++ decument of pic 18f4550
- yusuf ozturk goı ng a electronik engineering departman of gebze high technology of enstitue. end this fileis c++ decument of pic 18f4550
- 2022-07-16 11:19:28下载
- 积分:1
-
The ExeInfo utility shows general information about executable files (*.exe), dy...
The ExeInfo utility shows general information about executable files (*.exe), dynamic-link libraries (*.dll), ocx files, and drivers files. It can recognize all major types of executables, including MS-DOS files, New Executable files (16-bit) and Portable Executable files (32-bit).Created with VC++.
- 2022-03-15 03:49:16下载
- 积分:1
-
多目标nsga最新算法,自己改进
多目标nsga最新算法,自己改进后的,对学习这个方向的很有帮助
- 2022-01-26 08:31:23下载
- 积分:1
-
Dispersion in Optic Fiber
它是计算激光脉冲沿光纤传输时色散的程序。通过改变代码的不同参数,可以检查每个参数对输出脉冲的影响。它是一种在光纤网络设计中节省时间和金钱的模拟方法。
- 2022-02-20 15:01:52下载
- 积分:1
-
Simple program and code to list all functions in a DLL file
Simple program and code to list all functions in a DLL file
- 2022-03-16 08:10:22下载
- 积分:1
-
drawing for the general drawing functions, including (point, line, rectangle, el...
画图,提供一般的画图功能,包括(点,直线,矩形,椭圆,多边形等)-drawing for the general drawing functions, including (point, line, rectangle, ellipse, polygon, etc.)
- 2022-10-09 00:05:03下载
- 积分:1
-
a coding method run
地理信息系统的一种编码方法游程编码,简单实用-a coding method run-length coding, simple and practical
- 2022-05-15 22:32:10下载
- 积分:1
-
类Excel(全部使用VB编写)
类Excel(全部使用VB编写)-Excel category (all prepared using VB)
- 2022-03-23 01:11:23下载
- 积分:1