Welcome Guest, Not a member yet? Register   Sign In
Intercepting Large File Uploads
#2

[eluser]marcopolo[/eluser]
Before to call the upload method you can declare the $config for initialize

Code:
$config['max_size'] = '2048'; // 2Mb

Then after calling method for upload you can check for errors and handle it
Code:
$this->load->library('upload', $config);

  if ( ! $this->upload->do_upload())
  {
   $error = array('error' => $this->upload->display_errors());


Messages In This Thread
Intercepting Large File Uploads - by El Forum - 02-02-2012, 12:27 PM
Intercepting Large File Uploads - by El Forum - 02-02-2012, 02:55 PM
Intercepting Large File Uploads - by El Forum - 02-02-2012, 04:47 PM
Intercepting Large File Uploads - by El Forum - 02-03-2012, 03:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB