Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function upload()
- {
- $id = $this->save();
- $config['upload_path'] = './files';
- $config['allowed_types'] = 'zip';
- $config['encrypt_name'] = TRUE;
- $config['id_design'] = $id;
- $config['type'] = 'designs';
- $this->load->library('upload', $config);
- if ( ! $this->upload->do_upload('file'))
- {
- echo $this->upload->display_errors();
- }
- else
- {
- $data = $this->upload->zip_files();
- $this->savefiles($data, $id);
- }
- }
Add Comment
Please, Sign In to add comment