load->library("upload",$config);$field_name="att";if(!$this->upload->do_upload($field_name,true)){//出错$error=array("error"=>$this->upload->display_errors());}else{//正-IMDN开发者社群-imdn.cn"> load->library("upload",$config);$field_name="att";if(!$this->upload->do_upload($field_name,true)){//出错$error=array("error"=>$this->upload->display_errors());}else{//正 - IMDN开发者社群-imdn.cn">
登录
首页 » 文件处理 » CI框架上传类改写,支持多附件上传

CI框架上传类改写,支持多附件上传

于 2022-05-05 发布 文件大小:8.86 kB
0 153
下载积分: 2 下载次数: 1

代码说明:

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 { // 正

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • disk belonging to a scheduling algorithm is an extremely important algorithm, th...
    属于磁盘调度算法的一种,是一个极其重要的算法,在操作系统中占有很重要的地位-disk belonging to a scheduling algorithm is an extremely important algorithm, the operating system occupies a very important position
    2023-07-21 13:30:03下载
    积分:1
  • 该代码例子提供了修改加中指定名称和子加现在的名称。...
    该代码例子提供了修改文件加中指定文件名称和子文件加现在的文件名称。-the code examples provided a revised document specified documents plus the name and son File name in the paper now.
    2023-02-14 12:00:04下载
    积分:1
  • Linux/Unix下大型项目使用的通用编译工具nb(避免自己写Makefile的痛苦)
    nb--编译系统: 1)使用通用make脚本以及bash脚本实现,  可以安装在Linux系统中; 2) 压缩包里面解压后,运行install即可安装; 3) 压缩包里面有样例工程可以使用; 4) 安装后,在样例工程的src目录下运行nb 既可以编译,具体可以阅读的design-tips.txt文件; 5) 该工具实现了多核编译,源代码和目标码分不同目录输出; 6) 利用模板文件make.mk文件,实现大型项目下的各子目录编译的控制,非常灵活方便。
    2022-06-30 13:24:16下载
    积分:1
  • 马尔科夫随机域简介
    这本书是我黔东到马尔科夫随机 Fields。它对于你学习马尔可夫随机 field。 很有用你可以 ues 它为使线段 images。
    2022-08-07 23:37:11下载
    积分:1
  • 以前写小游戏的时候写的打包工具。这次重写了个GUI界面。附带C++ SDK源代码。 .NET 编译通过。给游戏玩家又一个好的工具,欢迎共同学习,商讨。...
    以前写小游戏的时候写的打包工具。这次重写了个GUI界面。附带C++ SDK源代码。 .NET 编译通过。给游戏玩家又一个好的工具,欢迎共同学习,商讨。-before the game was small when written in packing tools. This rewrite of the 000 GUI interface. Fringe C SDK source code. .NET compile. For gamers also a good tool, welcomed the joint study, to discuss.
    2023-06-02 08:25:03下载
    积分:1
  • perl language based on the MS
    基于perl语言实现的MS-Word文档信息提取程序,方便以后进行全文检索-perl language based on the MS-Word document information extraction procedures to facilitate subsequent full-text retrieval
    2022-11-16 10:30:03下载
    积分:1
  • translate Excell to txt file
    translate Excell to txt file-create spin and slider toolbar
    2023-01-05 02:35:03下载
    积分:1
  • 商城系统
    应用背景图书馆操作系统 大作业设计。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。关键技术大作业设计:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    2022-02-03 05:28:42下载
    积分:1
  • VC 6.0下读取XML档的例子 API + SDK程序 没有使用MFC
    VC 6.0下读取XML文档的例子 API + SDK程序 没有使用MFC-VC 6.0 under the example of reading XML documents API+ SDK procedure does not use MFC
    2022-07-01 02:11:22下载
    积分:1
  • registry, fixed, modify
    registry, fixed, modify
    2022-04-18 21:17:38下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载