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

  • 直接解码即可,程序内有比较完整的注释和说明。程序完成的功能是对一个进行md5编码,结果存在一个新建的.txt里。...
    直接解码即可,程序内有比较完整的注释和说明。程序完成的功能是对一个文件进行md5编码,结果存在一个新建的.txt文件里。-can directly decode, procedures are in the integrity of the Notes and annotations. Completion of the functions of a document md5 coding, a new existence. Txt file.
    2022-01-23 11:23:06下载
    积分:1
  • Code Line counter/code generator
    此应用程序是代码行计数器。它计算一个项目中的代码行。
    2022-01-21 21:18:02下载
    积分:1
  • Is to download a simple procedure, enter the URL can be downloaded directly on y...
    是下载的一个简单的程序,输入网址就直接就可以下载啦-Is to download a simple procedure, enter the URL can be downloaded directly on you
    2023-06-23 01:00:04下载
    积分:1
  • 有格式的plot3d网格转换为无格式
    气动方面,很多气动求解器使用的是有格式的plot3d格式文件,本程序可以将有格式的plot3d网格文件转换为无格式
    2022-01-23 11:08:15下载
    积分:1
  • source of the large amount of data space spatial data retrieval
    本源码是对大数据量的空间数据进行空间检索的-source of the large amount of data space spatial data retrieval
    2022-03-20 05:56:20下载
    积分:1
  • 使用LabWindows实现的拖拽操作。本程序将拖拽的名显示在本框内,并记录下鼠标的释放位置。...
    使用LabWindows实现文件的拖拽操作。本程序将拖拽的文件名显示在文本框内,并记录下鼠标的释放位置。-Use LabWindows implementation file drag and drop. This program will drag the file name displayed in the text box, and record the location of the next release of the mouse.
    2022-02-01 17:33:29下载
    积分:1
  • Delete the cycle with a certain characteristics of folders and files. The main s...
    循环删除具有某一个特征的文件夹和文件. 主要用清除受版本控制源码的痕迹. -Delete the cycle with a certain characteristics of folders and files. The main source version control clearance by the traces.
    2022-03-21 13:50:58下载
    积分:1
  • 方便的指示所选格的行列.通过VB制作的dll控制EXCEL表格.
    方便的指示所选格的行列.通过VB制作的dll控制EXCEL表格.-convenient instructions selected grid ranks. VB produced by the dll control Excel.
    2022-05-26 16:28:57下载
    积分:1
  • 我们都经常使用配置。为此我编写了IniFile读写类。使用非常简单,请参见示例程序。 程序采用了两种方法,一种是使用iterator调用,一种是直接...
    我们都经常使用配置文件。为此我编写了IniFile文件读写类。使用非常简单,请参见示例程序。 程序采用了两种方法,一种是使用iterator调用,一种是直接使用数组下标,可根据不同情况分别选用。 采用C++STL编写,适用于Windows,Linux,Unix任意平台下的任意开发环境,在此只是用Win平台的CBuilder做个示意。-we are always use configuration files. Therefore, I have prepared a document literacy IniFile category. Using very simple, please see sample program. Adoption of the two methods is the use of an iterator call, a direct use of the array index, under different circumstances were used. STL prepared using C, applies to Windows, Linux, Unix platform under the arbitrary arbitrary development environment, this is the platform used Win CBuilder become indicate.
    2022-02-05 17:59:29下载
    积分:1
  • all generated static html website, reduce server load, easily collected by searc...
    全部生成静态html网页,减轻服务器负载,容易被搜索引擎收录,采用模板引擎 SMARTY 便于模板的开发,支持多数据库,数据库函数被封装成类 ,自检式安装界面,类似word的图文编辑器htmlArea,静态html目录存放方式可选,支持站内搜索,后台和功能块均支持模板,语言包功能,投票功能,并控制在首页显示,支持评论和评论管理,支持友情链接功能,支持投稿功能,支持投票功能,支持任意多个图形附件上传,后台提供附件动态管理,支持web在线发送邮件,后台管理,支持数据库备份,防止数据灾难性丢失,保证数据安全,支持无限级分类,任意设置,支持公告发布和管理,公告支持有效期,用户注册,投稿,文章批量删除和移动,支持用户组,模板编辑,导入功能,数据库优化,导入导出,密码修改,后台投票管理,语言包编辑,投票功能 -all generated static html website, reduce server load, easily collected by search engines, using template engine Copyright 2004-2006 templates to facilitate the development, support multiple database functions have been packaged as such, the installation of self-check-style interface, similar to word a graphic editor htmlArea, static html directory optional storage methods, support station search, background and function block support template language pack functions, voting functions, and control of the Home show support management comments and comments to support Links function, writing support functions, support functions to vote in su
    2022-07-15 17:57:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载