-
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
-
计算文件的MD5结果,可以对比文件是否被更改过。
计算文件的MD5结果,可以对比文件是否被更改过。-documents MD5 calculated results can be compared documents were changed.
- 2022-08-08 12:38:37下载
- 积分:1
-
在本文中,我们提出了一种颜色
In this paper, we propose a color-based
segmentation method that uses the K-means clustering
technique to track tumor objects in magnetic
resonance (MR) brain images. The key concept in this
color-based segmentation algorithm with K-means is
- 2023-03-03 11:45:03下载
- 积分:1
-
企业级的DLL全部源代码
企业级的DLL全部源代码-enterprise-level DLL full source code
- 2022-04-19 09:44:29下载
- 积分:1
-
简单的php文件上传源码
1,通用组件,图形化文件上传2.文件命名可定制3.完全开源
- 2022-02-03 20:26:17下载
- 积分:1
-
Daily work for the Resolution of the document the workload of data and statistic...
日常工作中用于拆分文件中数据和统计工作量的小程序-Daily work for the Resolution of the document the workload of data and statistics applets
- 2022-03-07 14:51:26下载
- 积分:1
-
用正则表达式提取文本内容
VB代码实现用正则表达式对一段文字或对一个文本文件的内容进行匹配提取,提取到多段符合表达式的内容后可以自已指定用什么符号隔开显示。注意,建立VB工程后,要引用regexp.tlb文件,才支持正则表达式。
- 2022-03-15 07:46:51下载
- 积分:1
-
用vb.net编写的读office中doc文件的例子.
用vb.net编写的读office中doc文件的例子.-vb.net using office time to prepare the documents were doc example.
- 2022-12-15 15:45:03下载
- 积分:1
-
和WORD一样有自动保存文件的功能
和WORD一样有自动保存文件的功能-and as a Word document automatically preserve the function
- 2022-04-24 08:32:32下载
- 积分:1
-
把指定文件的“创建时间”“修改时间”修改成指定的值
把指定文件的“创建时间”“修改时间”修改成指定的值-designated documents "creation time", "modified" revise the value of the specified
- 2022-03-15 16:14:03下载
- 积分:1