Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
Upload class override the CI framework, support fo
no vote
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
ye_819
2016-08-23
0
1
No more~