-
CI框架上传类改写,支持多附件上传
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 {
// 正
- 2022-05-05 09:14:31下载
- 积分:1
-
和WORD一样有自动保存文件的功能
和WORD一样有自动保存文件的功能-and as a Word document automatically preserve the function
- 2022-04-24 08:32:32下载
- 积分:1
-
一个加法的好程序,对与入门非常有帮助的哦
一个加法的好程序,对与入门非常有帮助的哦-a good addition to the procedures of entry and very helpful oh
- 2022-02-28 13:07:35下载
- 积分:1
-
确保浏览器的地址栏中显示的网站地址的拼写和格式正确无误。
如果通过单击链接而到达了该网页,请与网站管理员联系,通知他们该链接的格式不正确。
单击后退...
确保浏览器的地址栏中显示的网站地址的拼写和格式正确无误。
如果通过单击链接而到达了该网页,请与网站管理员联系,通知他们该链接的格式不正确。
单击后退按钮尝试另一个链接。
HTTP 错误 404 - 文件或目录未找到。
Internet 信息服务 (IIS)
--------------------------------------------------------------------------------
技术信息(为技术支持人员提供)
转到 Microsoft 产品支持服务并搜索包括“HTTP”和“404”的标题。
打开“IIS 帮助”(可在 IIS 管理器 (inetmgr) 中访问),然后搜索标题为“网站设置”、“常规管理任务”和“关于自定义错误消息”的主题。 -ensure that the browser address bar of the website address and spelling correct format. If by clicking the link and arrived at the website, please contact Webmasters, informing them of the link format is not correct. Click the Back button to try another link. HTTP error 404-file or directory not found. Internet Information Services (IIS)-------------------------------------------------------------------------------- technical information (for technical support staff) to Microsoft Product Support Services and Search "HTTP" and "404" title. Open the "IIS help" (available on the IIS Manager (i
- 2022-01-25 14:56:48下载
- 积分:1
-
这是一个比较bin或者rbf与hex文件内容不同的工具。能在窗口上显示出不同处,同时能生成记录txt文件。...
这是一个比较bin或者rbf与hex文件内容不同的工具。能在窗口上显示出不同处,同时能生成记录txt文件。-This is a more or rbf bin hex contents of the documents and different tools. Window can display different, but will generate record txt document.
- 2022-01-28 22:48:24下载
- 积分:1
-
64位拉链
我的64位开发者文件卷64位Windows MS,开发我的64位文件卷64位Windows MS
- 2022-10-29 10:50:04下载
- 积分:1
-
降压变换器
此模型给出了降压变换器。 这 里降压变换器仿真了高电压到低电压一步步下降的情况。
- 2022-02-07 19:48:37下载
- 积分:1
-
随便写的玩
一个简单的设置开机启动项,并且创建一个矩形计算文件,包含.vbs 和c
- 2023-05-07 14:15:03下载
- 积分:1
-
it is a matlab software we have to plan to implement it
it is a matlab software we have to plan to implement it
-it is a matlab software we have to plan to implement it
- 2022-02-05 10:15:03下载
- 积分:1
-
很有用的文件分割程序
很有用的文件分割程序 -Very useful procedure for the carving out of the document
- 2023-03-19 06:25:03下载
- 积分:1