SHARE
TWEET

Untitled

a guest May 20th, 2019 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top