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

  • SE_ST7920 液晶电视 Atmega8 代码
    应用于与 Atmega8 ST7920 液晶显示器样品。与字体的头文件。做工精细。请用 5 伏进行测试。
    2022-10-02 14:20:03下载
    积分:1
  • This program searches disk for files that matches specified mask and deletes the...
    This program searches disk for files that matches specified mask and deletes them to clean disk from unused and unneeded files.
    2022-03-26 06:32:35下载
    积分:1
  • 创建一个大 从令一个avi中读取数据 对新创建的大进行写操作 然后对写入的数据进行MD5值校验 确保对大的写入正确...
    创建一个大文件 从令一个avi文件中读取数据 对新创建的大文件进行写操作 然后对写入的数据进行MD5值校验 确保对大文件的写入正确-Create a large file from a avi file so that read data on the newly created big file and then write the data to write MD5 checksum value to ensure that the correct write large files
    2023-03-15 07:55:04下载
    积分:1
  • Matlab 介绍 1
    这是介绍了 matlab,来描述如何获取开始与 matlab 的工作空间,和什么是的职能活动,一些应用程序,如: 求和、 图的两个维度、 图三个维度,和其他大量的应用程序,是专业用户的道路上迈出的一步。
    2022-02-07 15:52:05下载
    积分:1
  • 使用递归算法在指定目录下查找
    使用递归算法在指定目录下查找文件-use recursive algorithm in designated directories search for documents
    2023-02-21 15:05:04下载
    积分:1
  • 对INI的读写Windows / Linux / DOS系统
    对Windows/Linux/Dos系统的INI文件进行读写
    2023-05-26 05:55:03下载
    积分:1
  • 一个FTP工具,武器和传统的客户端代码可以运行
    一个ftp工具,有素武器和客户端代码,可以运行-an ftp tools, weapons and the traditional client code can run
    2023-04-25 15:40:02下载
    积分:1
  • html网页转化为相同效果的txt
    html网页文件转化为相同效果的txt文件-change html files to txt files
    2022-08-26 01:30:39下载
    积分:1
  • procedures Note : 1 : Multi
    程序说明: 1:多用户系统 2:商品分类支持多级; 3:支持IPAY 在线支付系统和银行转账; 4:功能完整,可以收藏,EMAIL推荐给好友,在线充值,银行转账 具体功能见演示-procedures Note : 1 : Multi-User System 2 : Commodity Classification support multi-level; 3 : support IPAY online payment systems and bank transfers; 4 : functional integrity, collections, EMAIL recommended to friends, online prepaid, bank transfer specific functions to see demo
    2022-03-29 11:57:22下载
    积分:1
  • 应用程序向导创建了这个bindfile应用你。这个应用程序
    AppWizard has created this BindFile application for you. This application not only demonstrates the basics of using the Microsoft Foundation classes but is also a starting point for writing your application. This file contains a summary of what you will find in each of the files that make up your BindFile application. -AppWizard has created this BindFile appli cation for you. This application not only demon strates the basics of using the Microsoft Found ation classes but is also a starting point for wr iting your application. This file contains a su mmary of what you will find in each of the files th at BindFile make up your application.
    2022-03-02 06:20:05下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载