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

  • 一个用多线程实现查找的例子本代码实现了利用多线程实现的查找...
    一个用多线程实现文件查找的例子本代码实现了利用多线程实现文件的查找-using a multi-threaded search files example of the implementation of the code by using multithreading document search
    2022-06-02 09:12:49下载
    积分:1
  • Fortran程序设计调用10个随机数
    程序会输出10个1到10之间的随机数,每次执行结果会不一样,因为是随机的。这里实例了函数返回数组的方法,主程序中要用interface来说明函数的使用接口。使用接口包括参数类型及返回值类型。
    2022-10-31 08:15:03下载
    积分:1
  • 使用 Jquery 的图像网格
    jQuery是一个多浏览器 (参看跨浏览器) JavaScript 库旨在简化客户端脚本的HTML。[2]它被发布了 2006 年 1 月在BarCamp NYC 由John Resig。它目前是由一组由 Dave Methvin 领导的开发人员开发。JQuery 使用超过 65%的 10000 个访问量最高,今天是网站的最受欢迎的JavaScript 库的使用。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2023-05-23 06:40:02下载
    积分:1
  • 针对Excel表格操作的编程实现:通过本及配套示例源码你可以更加灵活的控制Excel表格,其中包括创建新Excel、写入表格数据、读取表格数据(包...
    针对Excel表格文件操作的编程实现:通过本文及配套示例源码你可以更加灵活的控制Excel表格文件,其中包括创建新Excel文件、写入表格数据、读取表格数据(包括对原建Excel文件自已手工添加的行、列数据的准确读取),删除已有Excel表格,对表格中指定行、列、单元格进行查询、插入、替换等操作,同时还可以将生成的Excel 文件转换为按指定分隔符分隔的其它文本格式的文件 -Excel spreadsheet file for the programming operation: Through this article and associated sample source code you can be more flexible control of Excel spreadsheet file, including creating a new Excel file, write the form data, read the form data (including the original hand-built their own Excel files add rows, columns of data an accurate reading), delete the existing Excel table, the table specified in the rows, columns, cell query, insert, replace and other operations, but also can be generated Excel files into a specified separator delimited text format files of other
    2022-01-24 08:50:17下载
    积分:1
  • 操作的代码示例
    文件操作的代码示例-Sample code file operations
    2022-05-16 15:41:21下载
    积分:1
  • lg com 端口 unlok
    舒适性 LG 手机打开源它只是在这里以支持此软件的开发。免费版本是在购买之前对你有好处,那就试着在前。没有退款。
    2022-02-25 01:17:48下载
    积分:1
  • 自删除不同的实现方法
    资源描述在软件卸载,或其他高级用途中,需要用到删除自身(.EXE)文件的功能
    2022-02-02 22:13:11下载
    积分:1
  • 一个捆绑器代码,编译时把杀毒软关了,因为它会被杀毒软杀。...
    一个文件捆绑器代码,编译时把杀毒软件关了,因为它会被杀毒软件杀。-bundled with a document code, compile-time antivirus software related, because it will be scrapped antivirus software.
    2022-03-06 17:14:46下载
    积分:1
  • multifunctional document search tool
    多功能文件搜索工具-multifunctional document search tool
    2022-05-29 12:44:18下载
    积分:1
  • file manipulation
    文件操作-file manipulation
    2022-05-20 20:53:56下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载