[eluser]pickupman[/eluser]
You have not set the variable $userfile in your class, constructor, or method
Code:
class Upload extends Controller
{
//Your declared variables
function Upload()
{
parent::Controller();
$this->base = $this->config->item(‘base_url’);
$this->css = $this->config->item(‘css’);
$this->userfile = 'userfile'; //Add this line
$this->load->library(‘menu’);
$this->my_menu = $this->menu->show_menu();
$this->load->library(‘upload’);
$this->load->library(‘session’);
$this->load->helper(‘form’);
$this->load->helper(‘url’);
}
Also note, when posting code use the code button option at the top of the message box.