-
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
-
将文件夹里面的文件按照顺序排序,以便其他函数调用,打开多个文件的时候按照顺序打开。...
将文件夹里面的文件按照顺序排序,以便其他函数调用,打开多个文件的时候按照顺序打开。-folder inside of the document in accordance with the order of ranking, so that other function call, open multiple documents in accordance with the sequence open.
- 2022-03-06 15:12:54下载
- 积分:1
-
实现文本串的自由拆分,可用于命令行分解和字符管理部分
实现文本串的自由拆分,可用于命令行分解和字符管理部分-free separation can be used to the command line management of decomposition and some characters
- 2022-01-28 15:32:42下载
- 积分:1
-
估算程序复制时间
估算程序复制时间-copy estimated time
- 2022-04-08 04:39:01下载
- 积分:1
-
简单的 CPP 程序
这是简单的 c + + 程序的功能、 过载、 对象等 c + + 中是类和对象的 OOPS 结构。但不是纯粹的 OOPS 面向。这个程序没有类和对象。
- 2022-10-28 15:50:03下载
- 积分:1
-
文件操作、网络操作等公共函数,分享大家使用,这类不错
文件操作、网络操作等公共函数,分享大家使用,这类不错-File operations, network operations and other public functions, to share the use, of such good
- 2022-03-16 22:30:16下载
- 积分:1
-
将excel(xls) 和powerpoint(ppt)文档转换为网页格式
将excel(xls) 和powerpoint(ppt)文档转换为网页格式-Will excel (xls) and powerpoint (ppt) files converted to web page format
- 2022-04-08 15:15:24下载
- 积分:1
-
BIG5转换成GB和GB转换成BIG5的最只直观最简洁的源代码
BIG5转换成GB和GB转换成BIG5的最只直观最简洁的源代码-BIG5 into GB and GB into BIG5 most intuitive only the most concise source code
- 2022-06-21 12:39:34下载
- 积分:1
-
VC中提供了CFileDialog类来选择文件,如果想实现选择文件夹的功能,就不是那么简单了。下面的函数,可以实现选择文件夹的功能。并且可以指定文件夹和对话框的...
VC中提供了CFileDialog类来选择文件,如果想实现选择文件夹的功能,就不是那么简单了。下面的函数,可以实现选择文件夹的功能。并且可以指定文件夹和对话框的名称。-VC provides a CFileDialog to select the type of document, if you want to realize the function of choosing the folder, it is not so simple. The following function, you can choose to realize the function of the folder. And can specify the folders and the name of the dialog box.
- 2022-03-20 14:39:00下载
- 积分:1
-
VB.NET开发的采用,打开主文档创建、复制、删除…
通过VB.NET开发,主要实现文件的打开、新建、复制、删除操作,以一个实例的方式处理文件-The adoption of VB.NET development, the main document open, create, copy, delete operations, an example of the way to deal with file
- 2022-01-25 20:10:41下载
- 积分:1