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

  • 墨香itemlist.bin查看器e语言源代码
    墨香itemlist.bin查看器 可以按照相同的格式加载skill monster等等 e语言可能报毒请放行
    2023-08-02 19:55:03下载
    积分:1
  • write the log file a class, of course, can also be used for recording time data...
    写log文件的一个类,当然也可以用作记录适时数据使用。该类使用了临界区、事件、文件读写、线程等技术,是学习这些技术非常有参考价值的实例.-write the log file a class, of course, can also be used for recording time data access. The use of such a critical, events, document literacy, threading technology, learning technology is very useful examples.
    2023-03-12 21:55:03下载
    积分:1
  • 执行的路由协议 olsr
    这段代码是关于执行的路由协议 olsr 包含卓尔节点接口并对它应用这个协议
    2022-05-22 04:16:19下载
    积分:1
  • 递规地枚举,获取名、大小、最后修改时间、版本号等属性。...
    递规地枚举文件,获取文件名、大小、最后修改时间、版本号等文件属性。-delivery to Enumerate regulatory documents, access to a file name, size, last modification date, version and other file attributes.
    2022-02-09 23:24:07下载
    积分:1
  • 可以用此代码播放自己想听的WAV和MIDI声音以及系统声音。软虽小但用很大...
    可以用此代码播放自己想听的WAV和MIDI声音文件以及系统声音文件。软件虽小但用处很大-can use this code to listen to the players themselves WAV and MIDI sound files and the system sound files. Software is a small but very useful
    2023-02-28 23:05:03下载
    积分:1
  • 筛选器执行 dor 数字图像在 matleb
    hwew 是我在 matlab 例程中的筛选器执行的一些。这些包括高通滤波器低通和拉普拉斯筛选器。希望它将对初学者有用。
    2022-05-21 23:14:55下载
    积分:1
  • nRF2401 收发器设计
    这包含原理图和 pcb 设计的 NRF2401 收发器与天线老鹰格式中的布局。这是想要知道如何创建示意性的电子设计器和收发器的 pcb 布局非常有用。这里使用的天线是一个跟踪或微带天线。
    2022-02-02 01:52:59下载
    积分:1
  • SADirRead Copyright (C) 2002 Smaller Animals Software, Inc. This sof...
    SADirRead Copyright (C) 2002 Smaller Animals Software, Inc. This software is provided as-is , without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. http://www.smalleranimals.com smallest@smalleranimals.com
    2023-05-25 18:10:04下载
    积分:1
  • 通过API实现对内存访问的一个例子。读取大的速度很快
    通过API实现对内存访问的一个例子。读取大文件的速度很快-through API memory of a visit examples. Readers of large files fast
    2023-04-06 02:45:03下载
    积分:1
  • 一个可以自动对C源代码进行规范的软的原代码,可以让你的源代码整齐规范...
    一个可以自动对C源代码进行规范处理的软件的原代码,可以让你的源代码整齐规范-A C source code automatically to regulate the treatment of software source code, you can make your source code tidy norms
    2023-02-09 03:10:04下载
    积分:1
  • 696518资源总数
  • 106016会员总数
  • 2今日下载