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 151
下载积分: 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 个回复

  • 这是一个基于CFileFind类的比较完善的查找程序。
    这是一个基于CFileFind类的比较完善的文件查找程序。-This is a category based on the relatively perfect CFileFind documents Finder.
    2022-01-26 01:41:38下载
    积分:1
  • ,指定行和列的单元格内容。只有一个样本…
    VC中读取Excel文件中的指定行和列的单元格内容.只是一个示例程序,需要优化.-VC read Excel document designated rows and columns of cells content. Only a sample program, optimized.
    2022-07-08 22:10:19下载
    积分:1
  • WINDOWS操作系统可执行加密器,
    WINDOWS操作系统可执行文件加密器,-Windows operating system executable file encryption device.
    2022-08-17 18:57:46下载
    积分:1
  • 一个通过网络传输的程序,供网络编程学习。
    一个通过网络传输文件的程序,供网络编程学习。-A network to transfer files through the procedures for learning network programming.
    2023-07-06 21:35:02下载
    积分:1
  • Qt对XML增删查改操作
    实现QT对XML文件的创建,添加节点,查找节点,删除节点,添加节点下键值,读取节点下的键值,本代码最多支持4层节点,如果需要更多节点,可以参照我的函数进行重载 来实现。调用方便,类已经封装好,有中文注释。1.创建XML文件,2.添加一级节点,或添加2、3、4级节点3.设置添加的键值4.添加指定下节点的键值5.查找键值6.删除键值7.读取键值
    2022-07-23 13:00:36下载
    积分:1
  • Times the software can encrypt documents, to ensure that information security do...
    次软件可以给文件进行加密,确保文件信息的安全.-Times the software can encrypt documents, to ensure that information security documents.
    2022-07-07 12:25:40下载
    积分:1
  • RSA MD5算法源代码
    RSA MD5算法源代码-the source coude of rsa md5
    2022-08-14 04:05:30下载
    积分:1
  • 实现窗体自动隐藏方法有多种,可以使用定时器,不断监视鼠标,当鼠标移动到窗体边缘时,显示窗体,当鼠标离开后隐藏窗体。也可以在鼠标收到WM_NCMOUSEMOVE或...
    实现窗体自动隐藏方法有多种,可以使用定时器,不断监视鼠标,当鼠标移动到窗体边缘时,显示窗体,当鼠标离开后隐藏窗体。也可以在鼠标收到WM_NCMOUSEMOVE或 WM_MOUSEMOVE(无边框窗体)时激活窗体,然后在窗体消息WM_ACTIVE中设置显示或隐藏,这种方法在窗体未失去焦点时不会隐藏。我在原本的设计中便使用这种方法,只是在设计时发现非主窗体不太合适,激活窗体时会出现两个键盘焦点,而且我所需要的焦点是虚假的,可能我的设计不当,那位朋友若能完美实现,不妨交流一下。-achieve automatic hidden forms There are different ways they can use timers, constant surveillance mouse, the mouse moved to the brink of the form, the form shown when the mouse left hidden forms. The mouse can also receive WM_NCMOUSEMOVE or WM_MOUSEMOVE (no window frame), activated forms, and then in the form set WM_ACTIVE news show or hide, in the form of this method has not lost its focus will not be hidden. In my original design will use this method, the design was found non-main forms not appropriate, will be activated when there Form 2 keyboard focus, and I need the focus is false, maybe I am a poorly designed and friends who can achieve perfection, it may be things about.
    2022-03-04 19:46:00下载
    积分:1
  • 操作、网络操作等公共函数,分享大家使用,这类不错
    文件操作、网络操作等公共函数,分享大家使用,这类不错-File operations, network operations and other public functions, to share the use, of such good
    2022-03-16 22:30:16下载
    积分:1
  • C程序源代码美化(缩进)工具
    C程序源代码美化(缩进)工具-tool about beautifying c code
    2022-10-05 03:40:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载