CodeIgniter Forums
upload file error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: upload file error (/thread-52808.html)



upload file error - El Forum - 06-27-2012

[eluser]Ram Krishna[/eluser]
i have a controller code for uploading file.
Code:
<?php
class Quote extends CI_Controller{
function index()
  {
    $this->load->view('request_quote_form');
  }
function quote()
  {
   $config['upload_path']='./uploads/';
   $config['file_ext']='.doc/.docx/.pdf/.txt/.jpg';
   $config['file_size']='2048';
   $this->load->library('upload', $config);
  
  }
}
?>
It is giving error-
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Quote::$load

Filename: controllers/quote.php

the 12th line is
$this->load->library('upload', $config);

Line Number: 12