-
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
-
读取PE头来修改EXE的图标,有时挺有用的!
读取PE头来修改EXE的图标,有时挺有用的!-Read modify PE head EXE icon, and sometimes quite used to!
- 2022-07-09 06:51:00下载
- 积分:1
-
标准二进制文件操作模板
标准二进制文件操作模板-standard binary file manipulation template
- 2023-03-03 05:35:03下载
- 积分:1
-
这是一个文件监控程序,可以在应用层级别对指定目录下的文件操作进行监控,包括修改删除新建重命名等,并且可以指定文件的类型,以进行细粒度控制...
这是一个文件监控程序,可以在应用层级别对指定目录下的文件操作进行监控,包括修改删除新建重命名等,并且可以指定文件的类型,以进行细粒度控制-This is a document control procedures, the application layer level to the designated directory file operations to monitor, the new amendments include the deletion rename, and can specify the type of document, for fine-grained control
- 2022-12-19 05:45:03下载
- 积分:1
-
Word operation, write the content automatically. Doc document templates can be u...
Word操作,自动将内容写入.doc模版文件中,可以用来实现办公自动化,和无纸打印-Word operation, write the content automatically. Doc document templates can be used to realize office automation, and non-paper printing
- 2022-03-23 05:01:01下载
- 积分:1
-
国外的一个比较有名气的文本编辑器kupu 1.2.1
国外的一个比较有名气的文本编辑器kupu 1.2.1-abroad a famous text editor Kupu 1.2.1
- 2023-06-06 18:35:04下载
- 积分:1
-
此方法可以将内存中的数据保存到INI文件中
此方法可以将内存中的数据保存到INI文件中-failed to translate
- 2022-02-06 06:27:30下载
- 积分:1
-
可以把你选择的文件类型用你选择的程序打开。显示的图标也可以由你自己选择。附带SDK程序源代码。比较好用的程序...
可以把你选择的文件类型用你选择的程序打开。显示的图标也可以由你自己选择。附带SDK程序源代码。比较好用的程序-You can open the file you chose with the program you chose.You also can choose the icon,with SDK program source code.A good program.
- 2022-01-26 00:24:13下载
- 积分:1
-
Keep track of all of the movies in your collection. The program lets you add, ed...
Keep track of all of the movies in your collection. The program lets you add, edit and delete movies, search by name and list movies by genre or medium. That data structure used to store all of your information is explained in the README file
- 2022-07-23 10:18:00下载
- 积分:1
-
apd 到ndb cad文件转换
apd 到ndb cad文件转换-file transform from apd to ndb cad
- 2022-11-15 19:40:03下载
- 积分:1