Upload class override the CI framework, support fo
2016-08-23
0 0 0
no vote
Other
Earn points
Upload class override the CI framework,
Original program only supports one attachment uploads, does not support the upload control array.
Has been modified to support multiple attachments upload. Save the file, put it in your libraries folder in the program directory.
Calls are as follows:
//Handling attachment uploads $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 ($Fie
php
上传
框架
ci
支持
改写
附件
Related Source Codes
CRMEB open source mall system (including h5 offici
0
0
no vote
PHP source code of CRMEB multi port and multi lang
0
0
no vote
ALLLIGHT music player, adaptive to all mobile phon
0
0
no vote
DSMALL multi-merchant mall system
0
0
no vote
WeChat H5 payment source code
0
0
no vote
No comment