Welcome Guest, Not a member yet? Register   Sign In
File Uploading Class
#7

[eluser]CroNiX[/eluser]
You're sure there are no errors in your error logs? Do you have display_errors enabled?

For one thing, $this->input->post(NULL, TRUE) is an ARRAY. You can't directly echo an array (use print_r()). You should be getting an error there. But, according to your form that you posted, there aren't any other POST fields in your form so it should be an empty array anyway. You only have a single file input, so check the $_FILES superglobal.

Try skipping the views for troubleshooting, like this:
Code:
if ( ! $this->upload->do_upload())
  {
   echo 'FILES array:<br><pre>';
   print_r($_FILES);
   echo '</pre><br>Upload Errors:<br>';
   echo $this->upload->display_errors();
   die();
  }
  else
  {
   echo 'Upload Success:<br><pre>';
   print_r($this->upload->data());
   echo '</pre>';
   die();
  }


Messages In This Thread
File Uploading Class - by El Forum - 09-24-2014, 08:38 AM
File Uploading Class - by El Forum - 09-24-2014, 09:20 AM
File Uploading Class - by El Forum - 09-24-2014, 09:20 AM
File Uploading Class - by El Forum - 09-24-2014, 09:41 AM
File Uploading Class - by El Forum - 09-24-2014, 11:35 AM
File Uploading Class - by El Forum - 09-24-2014, 12:04 PM
File Uploading Class - by El Forum - 09-24-2014, 12:29 PM
File Uploading Class - by El Forum - 09-24-2014, 01:07 PM
File Uploading Class - by El Forum - 09-24-2014, 01:16 PM
File Uploading Class - by El Forum - 09-24-2014, 01:20 PM
File Uploading Class - by El Forum - 09-24-2014, 02:21 PM
File Uploading Class - by El Forum - 09-25-2014, 04:02 AM
File Uploading Class - by El Forum - 09-26-2014, 12:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB