-
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
-
文本文件读写文 本文件读写文本文件读写
文本文件读写文 本文件读写文本文件读写-text read and write
- 2022-07-01 06:58:21下载
- 积分:1
-
一个用多线程实现文件查找的例子本代码实现了利用多线程实现文件的查找...
一个用多线程实现文件查找的例子本代码实现了利用多线程实现文件的查找-using a multi-threaded search files example of the implementation of the code by using multithreading document search
- 2022-06-02 09:12:49下载
- 积分:1
-
文件上传SmartUpload
资源描述此代码是基于oracle数据库的文件上传功能实现,实现的是雇员信息功能,因为雇员信息有图片显示功能要求,通过文件上传功能实现信息录入功能。代码包含sql语句和具体实现代码,个人也是刚学,如有不对的地方大家指出。
- 2022-10-21 14:05:04下载
- 积分:1
-
一个小型的ELF文件分析器,使用vc编写,是一个理解ELF文件格式的好工具....
一个小型的ELF文件分析器,使用vc编写,是一个理解ELF文件格式的好工具.-a small ELF document analyzer, using vc preparation, ELF is an understandable format good tool.
- 2022-07-09 03:36:21下载
- 积分:1
-
用于读写xml文件的非常轻量级的c++类的源代码
用于读写xml文件的非常轻量级的c++类的源代码-used to read and write xml documents very lightweight category c source code
- 2022-02-01 00:18:43下载
- 积分:1
-
A component that allows you to perform file operations (copy, move, delete) usin...
A component that allows you to perform file operations (copy, move, delete) using the ShFileOperation Windows API function, showing the "flying files" Windows 95 standard dialog box. 使用ShFileOperation函数操作文件-A component that allows you to perform file operations (copy, move, delete) using the Windows API function ShFileOperation, showing the "flying files" 95 standard Windows dialog box. Use ShFileOperation function operation documents
- 2022-09-25 15:00:03下载
- 积分:1
-
this document file contain articles about machine diagnostics
this document file contain articles about machine diagnostics
- 2022-07-21 19:39:24下载
- 积分:1
-
ntfs underlying storage structure Xiangjie NTFS is the Windows NT introduced a n...
ntfs 底层存储结构详解
NTFS是Windows NT引入的新型文件系统,如果您是一位熟悉FAT磁盘格式的专业人士,您可能会觉得NTFS系统的思想蹩脚而晦涩,如果您对FAT格式一无所知,那么恭喜您,您会更快的了解这种更有效率的磁盘格式。-ntfs underlying storage structure Xiangjie NTFS is the Windows NT introduced a new file system, if you are familiar with the FAT disk format of a professional, you may feel lousy idea NTFS system, but obscure, if you know nothing about FAT format , then congratulations you, you will understand this more efficient and faster disk format.
- 2022-04-10 10:10:43下载
- 积分:1
-
c操作DBF
c操作DBF-c operation DBF
- 2022-02-28 20:59:17下载
- 积分:1