-
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
-
文件分割器的实现 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
-
这是一个"虚拟分区"的源代码,其功能是把任何一个文件夹虚拟成一个分区.其实现主要是利用了dos的subst命令.然后加入了写入注册表的功能.实现了临时建立分区和...
这是一个"虚拟分区"的源代码,其功能是把任何一个文件夹虚拟成一个分区.其实现主要是利用了dos的subst命令.然后加入了写入注册表的功能.实现了临时建立分区和永久建立分区的效果.delphi7源代码-This a "virtual" as the source code, and its function is a virtual folder into a district. Its main achievement is the use of dos subst orders. Write then joined the registry function. Achieved through the establishment of temporary and permanent establishment of regional results. Delphi7 source code
- 2022-07-25 23:17:45下载
- 积分:1
-
均值漂移
均值漂移是一种定位密度函数最大值的过程,给定从该函数中采样的离散数据。它有助于检测该密度的模式。
- 2023-08-07 05:20:04下载
- 积分:1
-
vc++ 文件系统检测 源码
vc++ 文件系统检测 源码
-filesystem_monitor_in_vc_c++.
- 2023-06-02 11:30:04下载
- 积分:1
-
本程序实现的功能主要以块方式对文件进行复制拷贝,然后读取文件中数据把块作为
缓冲通过串口发送数据。具体程序见界面上三个按纽的响应函数...
本程序实现的功能主要以块方式对文件进行复制拷贝,然后读取文件中数据把块作为
缓冲通过串口发送数据。具体程序见界面上三个按纽的响应函数-the program"s main function right way to block copying of documents. Then read data include documents as a block buffer data sent through the serial port. See specific procedures three button interface response function
- 2022-03-13 17:43:28下载
- 积分:1
-
delphi解析xml 通过delphi对于xml文件进行解析例程
delphi解析xml 通过delphi对于xml文件进行解析例程-delphi analytic xml through delphi for xml document analysis routines
- 2023-01-07 01:20:03下载
- 积分:1
-
here is the RAR file
here is the RAR file
- 2022-07-07 07:06:22下载
- 积分:1
-
Matlab 介绍 1
这是介绍了 matlab,来描述如何获取开始与 matlab 的工作空间,和什么是的职能活动,一些应用程序,如: 求和、 图的两个维度、 图三个维度,和其他大量的应用程序,是专业用户的道路上迈出的一步。
- 2022-02-07 15:52:05下载
- 积分:1
-
实现对WORD文档转换功能.txt文件
实现对WORD文档转换功能.txt文件-word document translate to .txt files
- 2022-04-29 17:14:24下载
- 积分:1