Guest User

Untitled

a guest
May 26th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. function upload()
  2. {
  3. $id = $this->save();
  4. $config['upload_path'] = './files';
  5. $config['allowed_types'] = 'zip';
  6. $config['encrypt_name'] = TRUE;
  7. $config['id_design'] = $id;
  8. $config['type'] = 'designs';
  9. $this->load->library('upload', $config);
  10.  
  11. if ( ! $this->upload->do_upload('file'))
  12. {
  13. echo $this->upload->display_errors();
  14. }
  15. else
  16. {
  17. $data = $this->upload->zip_files();
  18. $this->savefiles($data, $id);
  19. }
  20. }
Add Comment
Please, Sign In to add comment