Advertisement
Guest User

Untitled

a guest
May 20th, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. public function uploadFiles(){
  2.         $allowed_mime_type_arr = array('pdf','jpeg','png');
  3.         $ext = multiploExt($_FILES['documentos']['name']);
  4.         if(in_array($allowed_mime_type_arr, $ext)==TRUE){
  5.            
  6.             /*$retVal = validaDoc($this->input->post('numDoc')) ;
  7.             echo $retVal;*/
  8.             var_dump( multiploExt($_FILES['documentos']['name']));
  9.             $contar = count($_FILES);
  10.             echo $contar;
  11.         }else{
  12.             $this->session->set_flashdata("error", "Extenção de arquivo invalida. Extenção permetida JPEG, JPG, PNG, PDF!");
  13.             redirect(base_url('documentos-anexos/').$this->input->post('idAto'));
  14.         }
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement