Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] do_upload and the dreaded "The upload path does not appear to be valid"
#4

[eluser]jmbatty[/eluser]
another test i made

Code:
if(isset($_FILES['users_avatarFile'])){  
         $file   = read_file($_FILES['users_avatarFile']['tmp_name']);  
         $name   = basename($_FILES['users_avatarFile']['name']);  
          
         write_file('images/'.$name, $file);  
  
         $this->session->set_flashdata('error', 'it worked.');
                redirect('users');              
     }  
   else {
     $this->session->set_flashdata('error', 'again it failed.');
            redirect('users');
     }

works just fine... the file is uploaded into the right folder, but, i would prefer to use the upload class for that purpose...


Messages In This Thread
[SOLVED] do_upload and the dreaded "The upload path does not appear to be valid" - by El Forum - 01-06-2010, 11:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB