-
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
-
acvntyr
sbryhnv moukvh sfxzv toyuuoyu hgsdrhfxbcvdbxc drhnfvchnfg dtrujhgfv xvcsfj,n ;
- 2022-02-05 09:58:56下载
- 积分:1
-
自己写的公交查询系统 vb读写文件操作,比较简单
自己写的公交查询系统 vb读写文件操作,比较简单-Write their own public inquiry system file vb read and write operation, relatively simple
- 2022-03-22 21:11:38下载
- 积分:1
-
成批量删除文件的源程序,使用这个大家可想清楚了,删除就没有,想当初为了测试这个软件,我误删了整个D盘的文件,让我郁闷了好几天...
成批量删除文件的源程序,使用这个大家可想清楚了,删除就没有,想当初为了测试这个软件,我误删了整个D盘的文件,让我郁闷了好几天-batch delete the file into the source code, you can use this to be clear, there is no delete. At first, in order to test the software, I mistakenly deleted a whole plate of documents D, let me depressed for a few days! !
- 2022-03-03 14:19:51下载
- 积分:1
-
Batch file encryption, the encryption algorithm can be increased or on
实现文件批量加密,其加密算法可以自选或者另行增加加密算法,其扩展方便-Batch file encryption, the encryption algorithm can be increased or on-demand encryption algorithm, the expansion of convenience
- 2023-02-25 14:35:04下载
- 积分:1
-
Save the jpeg files in the 3 sites
Save the jpeg files in the 3 sites
- 2022-08-17 13:32:48下载
- 积分:1
-
文件操作的代码示例
文件操作的代码示例-Sample code file operations
- 2022-05-16 15:41:21下载
- 积分:1
-
文件操作源码
文件操作源码 -file manipulation source file manipulation FO
- 2022-12-21 01:50:03下载
- 积分:1
-
bat,免费将蝙蝠成exe文件
bat转exe,可以自由将bat转化成exe文件-bat to exe, free will bat into exe files
- 2022-04-30 08:34:35下载
- 积分:1
-
字符识别GUI
手写体字符识别在多媒体设备人机交互、邮政信件分拣、银行票据自动处理等领域有着重要的应用。由于手写体字符的随意性,使其识别难度大于印刷体字符。通常,手写体字符识别包括联机手写体字符识别和脱机手写字符识别。联机手写体字符识别是指经过各种输入设备,将字符的轮廓及其笔划顺序按顺序送入计算机中;而脱机手写体字符没有笔划顺序这一重要特征,输入到计算机中的只是二维图像,而且相对于印刷体字符,手写体字符由于不同的人而不同,造成即使是同一字符,不同的人书写也会因字体、习惯不同而大不一样,因此,从识别技术的难度来说,脱机手写体字符识别的难度高于联机手写体识别。
- 2022-03-15 06:51:42下载
- 积分:1