• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
upload file error

#1
[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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.