Welcome Guest, Not a member yet? Register   Sign In
"The upload path does not appear to be valid" - Aaaargh
#5

[eluser]invision[/eluser]
Hi again.

The output is now:
[]

So does that mean it is empty?

This is my full Upload controller:

Code:
<?php

class Upload extends Controller {
    
    function Upload()
    {
        parent::Controller();
        $this->load->helper(array('form', 'url'));
    }
    
    function index()
    {    
        $this->load->view('upload_form', array('error' => ' ' ));
    }

    function do_upload()
    {
        $config['upload_path'] = './uploads/';
        $config['allowed_types'] = 'gif|jpg|png';
        $config['max_size']    = '1000';
        $config['max_width']  = '1024';
        $config['max_height']  = '768';
        
        $this->load->library('upload', $config);
    
        if ( ! $this->upload->do_upload())
        {
            //$error = array('error' => $this->upload->display_errors());
            echo "[",$this->upload->upload_path,"]";
            $this->load->view('upload_form', $error);
        }    
        else
        {
            $data = array('upload_data' => $this->upload->data());
            
            $this->load->view('upload_success', $data);
        }
    }    
}
?>


Messages In This Thread
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 05-25-2010, 09:23 AM
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 05-25-2010, 09:47 AM
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 05-25-2010, 09:53 AM
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 05-25-2010, 09:57 AM
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 05-25-2010, 09:59 AM
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 05-25-2010, 10:10 AM
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 05-25-2010, 10:13 AM
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 05-25-2010, 10:20 AM
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 05-25-2010, 10:23 AM
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 05-26-2010, 03:42 PM
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 05-26-2010, 03:47 PM
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 05-26-2010, 03:51 PM
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 05-26-2010, 11:30 PM
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 05-27-2010, 01:03 AM
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 10-25-2010, 12:19 PM
"The upload path does not appear to be valid" - Aaaargh - by El Forum - 10-25-2010, 12:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB