-
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
-
文件压缩的一个小的软件(推荐)比较实用方便
文件压缩的一个小的软件(推荐)比较实用方便-compression of a small software (recommended) are more practical convenience
- 2022-12-31 20:30:15下载
- 积分:1
-
1,2,3,4 there is a figure that can vary the composition of the number of duplica...
有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少?-1,2,3,4 there is a figure that can vary the composition of the number of duplicate and without the three-digit figure? How many are?
- 2022-10-02 09:05:03下载
- 积分:1
-
this upload sample
this upload sample-this upload sample................
- 2022-03-09 23:56:30下载
- 积分:1
-
这是个文件管理系统软件,可以对文件进行复制删除等操作.
这是个文件管理系统软件,可以对文件进行复制删除等操作.-soft about files management, can copy and delete files
- 2023-08-08 19:00:03下载
- 积分:1
-
here is the RAR file
here is the RAR file
- 2022-07-07 07:06:22下载
- 积分:1
-
根据每一个具体的.txt文件定制文件图标
根据每一个具体的.txt文件定制文件图标-According to each specific. Txt file custom file icon
- 2022-02-13 18:17:00下载
- 积分:1
-
c操作DBF
c操作DBF-c operation DBF
- 2022-02-28 20:59:17下载
- 积分:1
-
文件分割器的实现 1.用CFileDialog类让用户选择需要进行分割或合并的文件(根据用户选择的操作) 2.在这里我们在切分文件之后,对分割后的文件名进行一个...
文件分割器的实现 1.用CFileDialog类让用户选择需要进行分割或合并的文件(根据用户选择的操作) 2.在这里我们在切分文件之后,对分割后的文件名进行一个处理,原则是文件名(不含扩展名)+pti (i为本分文件的序号)+.sld。自己定义了一种扩展名,因为如果别人切分一个exe文件,你分割以 后全部是exe文件,别人一执行,很可能会出现异常的。 3.根据用户填写的分数,计算每一份的大小,除不尽的加进最后一份。每份文件的最后写入一些附加 信息,如文件的扩展名,分数-separate document for the realization of one. With CFileDialog class allows users to choose the need for separate or combined document (user selectable operation) 2. Here we segmentation document, right after the split for a file name, the principle is that the paper (not including extensions) PTI ( i document as part of the serial number). ARX. His definition of an extension, because if someone splitting an exe file, you split after all exe file, and people, it is likely to be abnormal. 3. Users fill in the scores for each of a size, with the exception of the one into the last one. Each of the final document included some additional information, such as the file name extension, scores, etc.
- 2022-05-21 14:49:59下载
- 积分:1
-
信号分析仪探测器和平均为今天的数字通信标准
快速准确的测量方法,在今天的数字通信信号需要适当使用信号分析仪探测器模式和平均类型。测量传输信号、 杂散信号、 邻道功率和噪声的最佳速度和信心远比复杂的普通连续波 (CW) 信号测量。本文介绍了不同的频谱分析仪探测器模式和平均的类型,及其 W-CDMA,主要通信标准的关系是-2000,
GSM 和边缘。对测量精度的影响速度和还将讨论统计置信水平。
- 2022-08-06 17:25:12下载
- 积分:1