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

  • 详细介绍在.txt档中读取数据的方法,初学vc的很有帮助
    详细介绍在.txt文档中读取数据的方法,初学vc的很有帮助-Detailed in the introduction. Txt files to read data, the very helpful beginner vc
    2022-03-01 18:00:13下载
    积分:1
  • To split large files into smaller files conducive to the transfer, storage, can...
    把大文件分割成较小的文件利于转移,存储,又可以还原成原来的文件功能不变,超好用的文件分割程序-To split large files into smaller files conducive to the transfer, storage, can be restored to the original file functionality remains unchanged, the procedure for the carving超好用documents
    2023-06-27 23:55:04下载
    积分:1
  • 制作CAB压缩,只需将smaller.exe复制到要压缩的夹中,运行即可在它的上一级夹中产生file.cab...
    制作CAB压缩文件,只需将smaller.exe复制到要压缩的文件夹中,运行即可在它的上一级文件夹中产生file.cab-Production CAB compressed file, simply copy the smaller.exe to compressed folder, you can run it on a folder have file.cab
    2022-04-17 11:31:04下载
    积分:1
  • 惯例 89c5 1 单片机外围设备
    实验设计使用 80 C 51 单片机接口到外围设备: 液晶、 ADC0809、 RTC DS12887 和十六进制的键盘。自动控制和今天有这么多的应用程序在生产和生活中。从莫,常见于生产,直到服务用具活动,如洗 Moy,枪支的洪水......实施各种 phop 拍摄,在莫伊高企省一名官员,处理器或运动控制系统的自动控制。根据选定的领域,需要适当的控制系统。Vion 学校学生移动工业自动控制捕捉到所有的知识基础,从不够具体,解决所有香椿蟾蜍控制: 总 quot 摆出同样的工作以后。所需之一是知识的足够使用微控制器的国家研究和应用电路设计的东西。因此,您选择的主题 chyng 的光学文字: 实验设计电路晶粒分布建设 ghop 80 C 51 单片机与液晶桩外设,ADC0809、 RTC DS12887 和十六进制-键盘。
    2022-01-26 06:20:13下载
    积分: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
  • 自己写的公交查询系统 vb读写操作,比较简单
    自己写的公交查询系统 vb读写文件操作,比较简单-Write their own public inquiry system file vb read and write operation, relatively simple
    2022-03-22 21:11:38下载
    积分:1
  • 分隔控,可以将切割成指大小得
    文件分隔控件,可以将文件切割成指大小得文件-separate document control, can be cut into paper document refers in size
    2022-01-28 19:20:16下载
    积分:1
  • Matlab介绍 II
    这是介绍了 matlab,来描述如何获取开始与 matlab 的工作空间,和什么是的职能活动,一些应用程序,如: 求和、 图的两个维度、 图三个维度,和其他大量的应用程序,是专业用户的道路上迈出的一步。
    2022-06-21 04:57:06下载
    积分:1
  • cab格式的压缩源码
    cab格式的压缩源码-cab source of compressed format
    2022-09-05 08:40:02下载
    积分:1
  • ==================
    === === === Pumqara s Pe Library Version 0.3c ==================================== "Bin" - Contains the PeLibrary.lib and PeLibrary.dll "Doc" - Full HTML documentation with examples "Include" - Contains the include files "Src" - Source Code of the Library Read "DocHelp.htm" for all the information you may need! - Copyright Pumqara -- === === === === === === Pumqara s Pe Library Version 0.3c ==================================== "Bin"- Contains the PeLibrary.lib and PeLibrary.dll "Doc"- Full HTML documentation with examples "Include"- Contains the include files "Src"- Source Code of the Library Read "DocHelp.htm" for all the information you may need! - Copyright Pumqara -
    2022-04-15 16:15:35下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载