-
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
-
通过API实现对内存访问的一个例子。读取大文件的速度很快
通过API实现对内存访问的一个例子。读取大文件的速度很快-through API memory of a visit examples. Readers of large files fast
- 2023-04-06 02:45:03下载
- 积分:1
-
一个读取和写入ini配置文件的例子。从list1中读出数据写入到ini文件,再从ini文件写入到list2。...
一个读取和写入ini配置文件的例子。从list1中读出数据写入到ini文件,再从ini文件写入到list2。-Ini to read and write a configuration file example. List1 in读出数据from written to ini file, ini file from the write to list2.
- 2022-01-22 01:10:49下载
- 积分:1
-
xml 的parser,可以兼容任何平台,纯C++,没有任何库要求
xml 的parser,可以兼容任何平台,纯C++,没有任何库要求-the xml parser, any compatible platform, pure C, there is no requirement for
- 2022-02-24 23:51:13下载
- 积分:1
-
A document written using vc partition, and absolutely original Oh, is currently...
一个用vc写的文件分割器,绝对原创哦,目前是单线程的所以分割大文件时有点假死的现象,稍微改下就可做成多线程版的,留给大家来改吧-A document written using vc partition, and absolutely original Oh, is currently single-threaded split large files so when the phenomenon of suspended animation a bit, a little change can be made under the multi-threaded version, leaving you to change it
- 2022-02-11 14:44:36下载
- 积分:1
-
VB解压缩RAR文档,可以自己做压缩,和自解压等。
VB解压缩RAR文档,可以自己做压缩,和自解压等。-VB decompress RAR files can be done compression, and other self-extracting.
- 2022-07-24 18:02:19下载
- 积分:1
-
hashtable 实现缓存整理等功能,table中午对象存在时间过长则序列化进入磁盘...
hashtable 实现缓存整理等功能,table中午对象存在时间过长则序列化进入磁盘-hashtable
- 2022-08-22 11:53:35下载
- 积分:1
-
access to file attributes. A typical VC program, the full source to facilitate t...
获取文件属性。典型的VC编程,全部源代码,方便大家下载,可直接运行。-access to file attributes. A typical VC program, the full source to facilitate the download, can be directly run.
- 2022-05-15 15:15:12下载
- 积分:1
-
一个可以写AVI视频文件的源程序,可以用来学习如何使用AVI文件的读写...
一个可以写AVI视频文件的源程序,可以用来学习如何使用AVI文件的读写-it can use to write avi file,you can use it to study reading/writing avi file
- 2022-05-20 22:19:38下载
- 积分:1
-
Txt文本文件与Access文件互转换(功能还没有完善)例子中用到了第三方控件,有时间再整理一下....
Txt文本文件与Access文件互转换(功能还没有完善)例子中用到了第三方控件,有时间再整理一下.
-text files and archives documents Access Transformation (feature is not perfect) example uses a third-party control, have time to tidy up.
- 2022-02-15 06:40:17下载
- 积分:1